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 |
---|---|
28 | require_once( ABSPATH . 'wp-admin/includes/meta-boxes.php' ); |
29 |
|
30 | add_meta_box( 'linksubmitdiv', __( 'Save' ), 'link_submit_meta_box', null, 'side', 'core' ); |
31 | add_meta_box( 'linkcategorydiv', __( 'Categories' ), 'link_categories_meta_box', null, 'normal', 'core' ); |
32 | add_meta_box( 'linktargetdiv', __( 'Target' ), 'link_target_meta_box', null, 'normal', 'core' ); |
33 | add_meta_box( 'linkxfndiv', __( 'Link Relationship (XFN)' ), 'link_xfn_meta_box', null, 'normal', 'core' ); |
34 | add_meta_box( 'linkadvanceddiv', __( 'Advanced' ), 'link_advanced_meta_box', null, 'normal', 'core' ); |
35 |
|
36 | /** This action is documented in wp-admin/includes/meta-boxes.php */ |
37 | do_action( 'add_meta_boxes', 'link', $link ); |
38 |
|
39 | /** |
40 | * Fires when link-specific meta boxes are added. |
41 | * |
42 | * @since 3.0.0 |
43 | * |
44 | * @param object $link Link object. |
45 | */ |
46 | do_action( 'add_meta_boxes_link', $link ); |