wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_dashboard_trigger_widget_control › WordPress Function

Seit2.5.0
Veraltetn/v
wp_dashboard_trigger_widget_control ( $widget_control_id = false )
Parameter:
  • (int|false) $widget_control_id Optional. Registered widget ID. Default false.
    Erforderlich: Nein
    Standard: false
Definiert in:
Codex:

Calls widget control callback.



Quellcode

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