add_meta_boxes

add_meta_boxes

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.1

do_action('add_meta_boxes') is found 3 times:

  • /wp-admin/edit-form-comment.php line 232
  • /wp-admin/edit-link-form.php line 37
    add_meta_box( 'linkxfndiv', __( 'Link Relationship (XFN)' ), 'link_xfn_meta_box', null, 'normal', 'core' );
    add_meta_box( 'linkadvanceddiv', __( 'Advanced' ), 'link_advanced_meta_box', null, 'normal', 'core' );
    
    /** This action is documented in wp-admin/includes/meta-boxes.php */
    do_action( 'add_meta_boxes', 'link', $link );
    
    /**
     * Fires when link-specific meta boxes are added.
     *
     * @since 3.0.0
     *
    
  • /wp-admin/includes/meta-boxes.php line 1599
    	 *
    	 * @param string  $post_type Post type.
    	 * @param WP_Post $post      Post object.
    	 */
    	do_action( 'add_meta_boxes', $post_type, $post );
    
    	/**
    	 * Fires after all built-in meta boxes have been added, contextually for the given post type.
    	 *
    	 * The dynamic portion of the hook name, `$post_type`, refers to the post type of the post.
    	 *
    

See this hook used in plugins: