Used By
Used By | Description |
---|---|
wp-admin/includes/dashboard.php: _wp_dashboard_control_callback() | Outputs controls for the current dashboard widget. |
wp-admin/includes/dashboard.php: wp_dashboard_setup() | Registers dashboard widgets. |
Calls widget control callback.
(int) (Optional) Registered Widget ID.
Default value: false
File: wp-admin/includes/dashboard.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 ], ) ); } }
Version | Description |
---|---|
2.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_dashboard_trigger_widget_control