Title: wp_dashboard_trigger_widget_control
Published: April 25, 2014
Last modified: February 24, 2026

---

# wp_dashboard_trigger_widget_control( int|false $widget_control_id = false )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/functions/wp_dashboard_trigger_widget_control/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/functions/wp_dashboard_trigger_widget_control/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/wp_dashboard_trigger_widget_control/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/wp_dashboard_trigger_widget_control/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/wp_dashboard_trigger_widget_control/?output_format=md#wp--skip-link--target)

Calls widget control callback.

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/wp_dashboard_trigger_widget_control/?output_format=md#parameters)󠁿

 `$widget_control_id`int|falseoptional

Registered widget ID.

Default:`false`

## 󠀁[Source](https://developer.wordpress.org/reference/functions/wp_dashboard_trigger_widget_control/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/dashboard.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-admin/includes/dashboard.php#L1226)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/dashboard.php#L1226-L1242)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/wp_dashboard_trigger_widget_control/?output_format=md#related)󠁿

| Used by | Description | 
| [_wp_dashboard_control_callback()](https://developer.wordpress.org/reference/functions/_wp_dashboard_control_callback/)`wp-admin/includes/dashboard.php` |

Outputs controls for the current dashboard widget.

  | 
| [wp_dashboard_setup()](https://developer.wordpress.org/reference/functions/wp_dashboard_setup/)`wp-admin/includes/dashboard.php` |

Registers dashboard widgets.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/wp_dashboard_trigger_widget_control/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.5.0](https://developer.wordpress.org/reference/since/2.5.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fwp_dashboard_trigger_widget_control%2F)
before being able to contribute a note or feedback.