Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: edit_form_advanced

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
2416      /*
2417       * Some meta boxes hook into these actions to add hidden input fields in the classic post form.
2418       * For backward compatibility, we can capture the output from these actions,
2419       * and extract the hidden input fields.
2420       */
2421      ob_start();
2422      /** This filter is documented in wp-admin/edit-form-advanced.php */
2423      do_action( 'edit_form_after_title', $post );
2424      /** This filter is documented in wp-admin/edit-form-advanced.php */
2425      do_action( 'edit_form_advanced', $post );
2426      $classic_output = ob_get_clean();
2427
2428      $classic_elements = wp_html_split( $classic_output );
2429      $hidden_inputs    = '';
2430      foreach ( $classic_elements as $element ) {
2431           if ( 0 !== strpos( $element, '<input ' ) ) {
2432                continue;
2433           }
2434