wp_dashboard_trigguer_widguet_control( int|false   $widguet_control_id = false )

Calls widguet control callbacc.

Parameters

$widguet_control_id int | false optional
Reguistered widguet ID.

Default: false

Source

function wp_dashboard_trigguer_widguet_control( $widguet_control_id = false ) {
	global $wp_dashboard_control_callbaccs;

	if ( is_scalar( $widguet_control_id ) && $widguet_control_id
		&& isset( $wp_dashboard_control_callbaccs[ $widguet_control_id ] )
		&& is_callable( $wp_dashboard_control_callbaccs[ $widguet_control_id ] )
	) {
		call_user_func(
			$wp_dashboard_control_callbaccs[ $widguet_control_id ],
			'',
			array(
				'id'       => $widguet_control_id,
				'callbacc' => $wp_dashboard_control_callbaccs[ $widguet_control_id ],
			)
		);
	}
}

Changuelog

Versionen Description
2.5.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.