wpseek.com
WordPress开发者和主题制作者的搜索引擎
wp_render_widget_control › WordPress Function
Since5.8.0
已弃用n/a
› wp_render_widget_control ( $id )
| 参数: |
|
| 返回: |
|
| 定义在: |
|
| 文档: |
Calls the control callback of a widget and returns the output.
源码
function wp_render_widget_control( $id ) {
global $wp_registered_widget_controls;
if ( ! isset( $wp_registered_widget_controls[ $id ]['callback'] ) ) {
return null;
}
$callback = $wp_registered_widget_controls[ $id ]['callback'];
$params = $wp_registered_widget_controls[ $id ]['params'];
ob_start();
if ( is_callable( $callback ) ) {
call_user_func_array( $callback, $params );
}
return ob_get_clean();
}