pre-plupload-upload-ui
Fires before the upload interface loads.
Использование
add_action( 'pre-plupload-upload-ui', 'wp_kama_pre_plupload_upload_ui_action' ); /** * Function for `pre-plupload-upload-ui` action-hook. * * @return void */ function wp_kama_pre_plupload_upload_ui_action(){ // action... }
Список изменений
С версии 3.3.0 | Введена. |
С версии 2.6.0 | As 'pre-flash-upload-ui' |
Где вызывается хук
pre-plupload-upload-ui
pre-plupload-upload-ui
wp-admin/includes/media.php 2245
do_action( 'pre-plupload-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
wp-includes/media-template.php 276
do_action( 'pre-plupload-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores