load-widgets.php хук-событиеWP 2.8.0

Fires early when editing the widgets displayed in sidebars.

Использование

add_action( 'load-widgets.php', 'wp_kama_load_widgets.php_action' );

/**
 * Function for `load-widgets.php` action-hook.
 * 
 * @return void
 */
function wp_kama_load_widgets.php_action(){

	// action...
}

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

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

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

wp_ajax_save_widget()
load-widgets.php
WP_Customize_Widgets::customize_controls_init()
load-widgets.php
WP_Customize_Widgets::wp_ajax_update_widget()
load-widgets.php
wp_ajax_delete_inactive_widgets()
load-widgets.php
wp-admin/includes/ajax-actions.php 2307
do_action( 'load-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
wp-includes/class-wp-customize-widgets.php 335
do_action( 'load-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
wp-includes/class-wp-customize-widgets.php 1678
do_action( 'load-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
wp-admin/includes/ajax-actions.php 2417
do_action( 'load-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

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

Использование не найдено.