attachment_submitbox_misc_actions
The WordPress Core attachment submitbox misc actions hook.
Description
Parameters (1)
- 0. $attachment_submitbox_metadata (string) =>
'attachment_submitbox_metadata'
- The attachment submitbox metadata.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'attachment_submitbox_misc_actions', $attachment_submitbox_metadata );
- The following example is for adding a hook callback.
- // define the attachment_submitbox_misc_actions callback
- function action_attachment_submitbox_misc_actions( $attachment_submitbox_metadata ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'attachment_submitbox_misc_actions', 'action_attachment_submitbox_misc_actions', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'attachment_submitbox_misc_actions', 'action_attachment_submitbox_misc_actions', 10, 1 );
Defined (2)
The action is defined in the following location(s).
- /wp-admin/includes/admin-filters.php
- add_action( 'attachment_submitbox_misc_actions', 'attachment_submitbox_metadata' );
- /wp-admin/includes/meta-boxes.php
- do_action( 'attachment_submitbox_misc_actions' );