rc_widget_form_output hook
-
Hi,
I was looking for something exactly like your plugin, so many thanks for it!
I experimented with adding my own fields via hooks and I would suggest to add instance of RC_Widget class (ie.
$this
) as a parameter to therc_widget_form_output
hook.This way, in filter function that hooks to
rc_widget_form_output
, the code that prints new form fields can useget_field_id
andget_field_name
methods (inherited from WP_Widget class) – basically the same way that standard plugin code does. Adding new fields to the form is then just a copy-paste exercise plus a bit of renaming ??Thanks for great plugin again!
?eslav
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘rc_widget_form_output hook’ is closed to new replies.