Source View: bulk_edit_custom_box

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.

  • Action hooks look like this: do_action( "hook_name" )
  • Filter hooks look like this: apply_filters( "hook_name", "what_to_filter" ).

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
1243
1244           </div>
1245
1246      </div></fieldset>
1247
1248 <?php
1249      foreach ( $columns as $column_name => $column_display_name ) {
1250           if ( isset( $core_columns[$column_name] ) )
1251                continue;
1252           do_action( $bulk ? 'bulk_edit_custom_box' : 'quick_edit_custom_box', $column_name, $type);
1253      }
1254 ?>
1255      <p class="submit inline-edit-save">
1256           <a accesskey="c" href="#inline-edit" title="<?php _e('Cancel'); ?>" class="button-secondary cancel alignleft"><?php _e('Cancel'); ?></a>
1257           <?php if ( ! $bulk ) {
1258                wp_nonce_field( 'inlineeditnonce', '_inline_edit', false );
1259                $update_text = ( $is_page ) ? __( 'Update Page' ) : __( 'Update Post' );
1260                ?>
1261                <a accesskey="s" href="#inline-edit" title="<?php _e('Update'); ?>" class="button-primary save alignright"><?php echo esc_attr( $update_text ); ?></a>