post-html-upload-ui
The WordPress Core post html upload ui hook.
Description
Parameters (1)
- 0. $media_upload_html_bypass (string) =>
'media_upload_html_bypass'
- The media upload html bypass.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'post-html-upload-ui', $media_upload_html_bypass );
- The following example is for adding a hook callback.
- // define the post-html-upload-ui callback
- function action_post_html_upload_ui( $media_upload_html_bypass ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'post-html-upload-ui', 'action_post_html_upload_ui', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'post-html-upload-ui', 'action_post_html_upload_ui', 10, 1 );
Defined (2)
The action is defined in the following location(s).
- /wp-admin/includes/admin-filters.php
- add_action( 'post-html-upload-ui', 'media_upload_html_bypass' );
- /wp-admin/includes/media.php
- do_action( 'post-html-upload-ui' );