WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/register widget control


This function has been deprecated. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions. All code that uses this function should be converted to use its replacement if one exists. See also wp-includes/deprecated.php. Use any of these functions instead.

Synopsis

void register_widget_control ( string name, callback [, int width [, int height ] ] )

Adds the output of callback to the admin interface as an inline popup. The popup is a child of the main form so it must not include <form> tags or submit buttons. It should include form inputs with very specific names and id’s.

The form data should also be handled within callback as its first action, but advanced widgets may have good reasons to differ from this model.

The string name used in register_widget_control() needs to match the string name used in register_sidebar_widget().

Related

Widgets: is_active_widget(), the_widget(), register_widget(), unregister_widget(), wp_register_widget_control(), wp_unregister_widget_control(), wp_convert_widget_settings(), wp_get_widget_defaults(), wp_widget_description()