WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )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.
| Line | Code |
|---|---|
| 419 | $metadata = has_meta($post->ID); |
| 420 | list_meta($metadata); |
| 421 | meta_form(); ?> |
| 422 | </div> |
| 423 | <p><?php _e('Custom fields can be used to add extra metadata to a post that you can <a href="http://codex.wordpress.org/Using_Custom_Fields" target="_blank">use in your theme</a>.'); ?></p> |
| 424 | <?php |
| 425 | } |
| 426 | add_meta_box('postcustom', __('Custom Fields'), 'post_custom_meta_box', 'post', 'normal', 'core'); |
| 427 | |
| 428 | do_action('dbx_post_advanced'); |
| 429 | |
| 430 | /** |
| 431 | * Display comment status for post form fields. |
| 432 | * |
| 433 | * @since 2.6.0 |
| 434 | * |
| 435 | * @param object $post |
| 436 | */ |
| 437 | function post_comment_status_meta_box($post) { |