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

wp_dashboard_trigger_widget_control() WP 2.5.0

Calls widget control callback.

  • Global. Массив. $wp_dashboard_control_callbacks

Хуков нет.

Возвращает

Ничего (null).

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

wp_dashboard_trigger_widget_control( $widget_control_id );
$widget_control_id(число)
Registered Widget ID.
По умолчанию: false

Код wp dashboard trigger widget control: wp-admin/includes/dashboard.php VER 5.1.1

<?php
function wp_dashboard_trigger_widget_control( $widget_control_id = false ) {
	global $wp_dashboard_control_callbacks;

	if ( is_scalar( $widget_control_id ) && $widget_control_id && isset( $wp_dashboard_control_callbacks[ $widget_control_id ] ) && is_callable( $wp_dashboard_control_callbacks[ $widget_control_id ] ) ) {
		call_user_func(
			$wp_dashboard_control_callbacks[ $widget_control_id ],
			'',
			array(
				'id'       => $widget_control_id,
				'callback' => $wp_dashboard_control_callbacks[ $widget_control_id ],
			)
		);
	}
}