WordPress Version: 4.3
/**
* Remove control callback for widget.
*
* @since 2.2.0
*
* @param int|string $id Widget ID.
*/
function wp_unregister_widget_control($id)
{
wp_register_widget_control($id, '', '');
}
The timeline below displays how wordpress function wp_unregister_widget_control has changed across different WordPress versions. If a version is not listed, refer to the next available version below.
/**
* Remove control callback for widget.
*
* @since 2.2.0
*
* @param int|string $id Widget ID.
*/
function wp_unregister_widget_control($id)
{
wp_register_widget_control($id, '', '');
}
/**
* Remove control callback for widget.
*
* @since 2.2.0
*
* @param int|string $id Widget ID.
*/
function wp_unregister_widget_control($id)
{
return wp_register_widget_control($id, '', '');
}
/**
* Remove control callback for widget.
*
* @since 2.2.0
* @uses wp_register_widget_control() Unregisters by using empty callback.
*
* @param int|string $id Widget ID.
*/
function wp_unregister_widget_control($id)
{
return wp_register_widget_control($id, '', '');
}