Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: edit_form_after_title

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
2423      $user_id      = $current_user->ID;
2424      wp_nonce_field( $nonce_action );
2425
2426      /*
2427       * Some meta boxes hook into these actions to add hidden input fields in the classic post form. For backwards
2428       * compatibility, we can capture the output from these actions, and extract the hidden input fields.
2429       */
2430      ob_start();
2431      /** This filter is documented in wp-admin/edit-form-advanced.php */
2432      do_action( 'edit_form_after_title', $post );
2433      /** This filter is documented in wp-admin/edit-form-advanced.php */
2434      do_action( 'edit_form_advanced', $post );
2435      $classic_output = ob_get_clean();
2436
2437      $classic_elements = wp_html_split( $classic_output );
2438      $hidden_inputs    = '';
2439      foreach ( $classic_elements as $element ) {
2440           if ( 0 !== strpos( $element, '<input ' ) ) {
2441                continue;