wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
wp_render_widget_control › WordPress Function
Seit5.8.0
Veraltetn/v
› wp_render_widget_control ( $id )
| Parameter: |
|
| Gibt zurück: |
|
| Definiert in: |
|
| Codex: |
Calls the control callback of a widget and returns the output.
Ähnliche Funktionen: wp_register_widget_control, wp_unregister_widget_control, wp_widget_control, register_widget_control, wp_render_widget
Quellcode
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();
}