Title: Missing argument 2 for myplugin_widget
Last modified: August 31, 2016

---

# Missing argument 2 for myplugin_widget

 *  Resolved [RVD501](https://wordpress.org/support/users/rvd501/)
 * (@rvd501)
 * [10 years ago](https://wordpress.org/support/topic/missing-argument-2-for-myplugin_widget/)
 * I have problems with the image widget.
    Do you have a solution?
 * Warning: Missing argument 2 for myplugin_widget_title() in /home/vhosts/radio501.
   nl/httpdocs/wp-content/themes/on-air/functions.php on line 242
 * Warning: Missing argument 3 for myplugin_widget_title() in /home/vhosts/radio501.
   nl/httpdocs/wp-content/themes/on-air/functions.php on line 242
 * [https://wordpress.org/plugins/simple-image-widget/](https://wordpress.org/plugins/simple-image-widget/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Brady Vercher](https://wordpress.org/support/users/bradyvercher/)
 * (@bradyvercher)
 * [10 years ago](https://wordpress.org/support/topic/missing-argument-2-for-myplugin_widget/#post-7433038)
 * Those error messages don’t appear to be related to this plugin since they’re 
   being generated by code in your theme. My best guess is that you’ll need to modify
   the call to add_filter() in your theme to make sure all 3 arguments get passed
   to your callback function.
 * You’ll probably have a line in your theme that looks something like this:
 * `add_filter( 'widget_title', 'myplugin_widget_title' );`
 * It should look like this:
 * `add_filter( 'widget_title', 'myplugin_widget_title', 10, 3 );`
 * You can also update the parameters in your callback to make them optional:
 * `function myplugin_widget_title( $title, $instance = array(), $id_base = '' ){}`

Viewing 1 replies (of 1 total)

The topic ‘Missing argument 2 for myplugin_widget’ is closed to new replies.

 * ![](https://ps.w.org/simple-image-widget/assets/icon.svg?rev=3330956)
 * [Simple Image Widget](https://wordpress.org/plugins/simple-image-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-image-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-image-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-image-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-image-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-image-widget/reviews/)

## Tags

 * [missing argument](https://wordpress.org/support/topic-tag/missing-argument/)

 * 1 reply
 * 2 participants
 * Last reply from: [Brady Vercher](https://wordpress.org/support/users/bradyvercher/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/missing-argument-2-for-myplugin_widget/#post-7433038)
 * Status: resolved