Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

On this page: http://codex.wordpress.org/Function_Reference/wp_add_dashboard_widget

The function wp_add_dashboard_widget is described.

It states:

wp_add_dashboard_widget($widget_id, $widget_name, $callback, $control_callback = null)

How do you use the $control_callback, properly? I am completeley stuck, as I have defined it but cannot use it.

I need to create a form within this widget which is why I am using the control_callback.

EDIT: as a side note I am using Wordpress 3 and Multisite

share|improve this question
add comment

2 Answers 2

Do you need to handle form/input data? If not, then you can omit the $control_Callback, and simply use the $callback in order to display content.

share|improve this answer
    
yes, see edit: I do need input data, hence why I am using the control_callback... –  Ash May 5 '11 at 17:28
add comment
up vote 1 down vote accepted

Solution : hover on the title bar of your widget, then click configure

Don't ask me why this works like this but it does.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.