This may be a dumb question but I have been unable to find a reasonable description in the Codex or online…
In the Widget example there is in the constructor function the following line…
$this->WP_Widget( 'example-widget', __('Example Widget', 'example'), $widget_ops, $control_ops );
I am wondering what the ‘example-widget’ and __(‘Example Widget’, ‘example’) are for. The $widget_ops and $control_ops I have been able to decipher from online material but the first two I am not sure about. It seems that sometimes these are included and other times they are not.
If anyone could provide information, a link to the the codex where this is covered or anything at all please let me know.
All the best.
- The topic ‘$this->WP_Widget() syntax’ is closed to new replies.