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

Fires early when editing the widgets displayed in sidebars.

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

add_action( 'widgets.php', 'wp_kama_widgets.php_action' );

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

	// action...
}

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

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

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

wp_ajax_save_widget()
widgets.php
WP_Customize_Widgets::customize_controls_init()
widgets.php
WP_Customize_Widgets::wp_ajax_update_widget()
widgets.php
wp_ajax_delete_inactive_widgets()
widgets.php
wp-admin/includes/ajax-actions.php 2314
do_action( 'widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
wp-includes/class-wp-customize-widgets.php 338
do_action( 'widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
wp-includes/class-wp-customize-widgets.php 1681
do_action( 'widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
wp-admin/includes/ajax-actions.php 2419
do_action( 'widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

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

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