WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
событие не описано

load-(plugin_page) хук-событие . WP 1.5.0

Fires before a particular screen is loaded.

Ищем WP-разработчика! Фулл-тайм, удаленка, хорошая зарплата, соц. пакет. Подробности.
Компания Boosta.

The load-* hook fires in a number of contexts. This hook is for plugin screens where the file to load is directly included, rather than the use of a function.

The dynamic portion of the hook name, $plugin_page, refers to the plugin basename.


add_action( 'load-(plugin_page)', 'action_function_name_1151' );
function action_function_name_1151(){
	// action...

Список изменений

С версии 1.5.0 Введена.

Где вызывается хук

В файле: /wp-admin/admin.php
wp-admin/admin.php 284
do_action( "load-{$plugin_page}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

Где используется хук в ядре WordPress

wp-admin/includes/admin-filters.php 113
add_action( 'load-plugins.php', 'wp_plugin_update_rows', 20 ); // After wp_update_plugins() is called.
wp-admin/includes/admin-filters.php 114
add_action( 'load-themes.php', 'wp_theme_update_rows', 20 ); // After wp_update_themes() is called.
wp-admin/includes/class-custom-background.php 70
add_action( "load-{$page}", array( $this, 'admin_load' ) );
wp-admin/includes/class-custom-background.php 71
add_action( "load-{$page}", array( $this, 'take_action' ), 49 );
wp-admin/includes/class-custom-background.php 72
add_action( "load-{$page}", array( $this, 'handle_upload' ), 49 );
wp-includes/update.php 966
add_action( 'load-plugins.php', 'wp_update_plugins' );
wp-includes/update.php 967
add_action( 'load-update.php', 'wp_update_plugins' );
wp-includes/update.php 968
add_action( 'load-update-core.php', 'wp_update_plugins' );
wp-includes/update.php 972
add_action( 'load-themes.php', 'wp_update_themes' );
wp-includes/update.php 973
add_action( 'load-update.php', 'wp_update_themes' );
wp-includes/update.php 974
add_action( 'load-update-core.php', 'wp_update_themes' );