$nonce_action = 'update-bookmark_' .
$link_id;
} else { /* translators: %s: URL to Links screen. */
$heading =
sprintf( __( '<a href="%s">Links</a> / Add New Link'
), 'link-manager.php'
);
$submit_text =
__( 'Add Link'
);
$form_name = 'addlink';
$nonce_action = 'add-bookmark';
}require_once ABSPATH . 'wp-admin/includes/meta-boxes.php';
add_meta_box( 'linksubmitdiv',
__( 'Save'
), 'link_submit_meta_box', null, 'side', 'core'
);
add_meta_box( 'linkcategorydiv',
__( 'Categories'
), 'link_categories_meta_box', null, 'normal', 'core'
);
add_meta_box( 'linktargetdiv',
__( 'Target'
), 'link_target_meta_box', null, 'normal', 'core'
);
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
*
* @param object $link Link object.
*/