pre-html-upload-ui
Action HookDescription
Fires before the upload button in the media upload interface.Hook Information
File Location |
wp-admin/includes/media.php
View on GitHub
|
Hook Type | Action |
Line Number | 2278 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into pre-html-upload-ui
add_action('pre-html-upload-ui', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-admin/includes/media.php:2278
- How this hook is used in WordPress core
<?php
2273 /**
2274 * Fires before the upload button in the media upload interface.
2275 *
2276 * @since 2.6.0
2277 */
2278 do_action( 'pre-html-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
2279
2280 ?>
2281 <p id="async-upload-wrap">
2282 <label class="screen-reader-text" for="async-upload">
2283 <?php
PHP Documentation
<?php
/**
* Fires before the upload button in the media upload interface.
*
* @since 2.6.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-admin/includes/media.php
Related Hooks
Related hooks will be displayed here in future updates.