pre-html-upload-ui
Fires before the upload button in the media upload interface.
Description
do_action( 'pre-html-upload-ui' );
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'pre-html-upload-ui' );
- The following example is for adding a hook callback.
- // define the pre-html-upload-ui callback
- function action_pre_html_upload_ui( ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'pre-html-upload-ui', 'action_pre_html_upload_ui', 10, 0 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'pre-html-upload-ui', 'action_pre_html_upload_ui', 10, 0 );
Defined (1)
The action is defined in the following location(s).
- /wp-admin/includes/media.php
- do_action( 'pre-html-upload-ui' );