Advertisements

wp_dashboard_trigger_widget_control

Definition:
function wp_dashboard_trigger_widget_control( $widget_control_id = false ) {}

Calls widget control callback.

Parameters

  • int $widget_control_id: Registered Widget ID.

Source code

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] ) );

	}

}

3571

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: