wp_dashboard_trigger_widget_control
函数
wp_dashboard_trigger_widget_control ( $widget_control_id = false )
- 参数
-
-
(int|false)
$widget_control_id
Optional. Registered widget ID. Default false.- Required: 否
- Default: false
-
(int|false)
- 定义位置
-
-
wp-admin/includes/dashboard.php
, line 1198
-
wp-admin/includes/dashboard.php
- 引入
- 2.5.0
- 弃用
- –
Calls widget control callback.
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 ], ) ); } }
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。