Title: [Plugin: eShop] Debug warning: add_contextual_help deprecated
Last modified: August 20, 2016

---

# [Plugin: eShop] Debug warning: add_contextual_help deprecated

 *  Resolved [kitchin](https://wordpress.org/support/users/kitchin/)
 * (@kitchin)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-eshop-debug-warning-add_contextual_help-deprecated/)
 * If you run eShop 6.2.10 with DEBUG true (in wp-config.php) in WP 3.3 then the
   admins screens will load up about a dozen repetitions of this warning:
 * > Notice: add_contextual_help is deprecated since version 3.3! Use get_current_screen()-
   > >add_help_tab() instead. in …/wp-includes/functions.php on line 3458
 * If you enjoy debug mode then this is annoying. The fix is a tiny bit more the
   warning indicates, so I made a pretty safe helper function. Two files to patch:
 * eshop-admin-functions.php
 *     ```
       // add_contextual_help($paged,$help); // deprecated 3.3
       my_add_contextual_help($paged,$help);
       ```
   
 * eshop-settings-class.php
 *     ```
       // add_contextual_help($this->pagehook, $help); // deprecated 3.3
       my_add_contextual_help($this->pagehook,$help);
       ```
   
 * (This is minimal. In my eshop, I actually wrapped them with “if (function_exists()”.)
 * The new function is here: [http://pastebin.com/TshW8KxA](http://pastebin.com/TshW8KxA)
   
   It’s only a few lines, and is formatted as an mu-plugin. The least obvious step
   is `$screen = convert_to_screen( $screen );`
 * The name ‘my_…’ is sort of example code, but it does work.
 * [http://wordpress.org/extend/plugins/eshop/](http://wordpress.org/extend/plugins/eshop/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-eshop-debug-warning-add_contextual_help-deprecated/#post-2455164)
 * This will be fixed in the next version of eShop.
 *  Thread Starter [kitchin](https://wordpress.org/support/users/kitchin/)
 * (@kitchin)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-eshop-debug-warning-add_contextual_help-deprecated/#post-2455174)
 * Thanks!
 *  [TreeParlor](https://wordpress.org/support/users/treeparlor/)
 * (@treeparlor)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-eshop-debug-warning-add_contextual_help-deprecated/#post-2455289)
 * Just ran into this myself. I’m not sure where to put the patches in the these
   two files. Before the <?php or inside it?
 * Thanks for the help!
 *  Thread Starter [kitchin](https://wordpress.org/support/users/kitchin/)
 * (@kitchin)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-eshop-debug-warning-add_contextual_help-deprecated/#post-2455290)
 * The easiest place to put the pastebin code is in a new must-use plugin. Create
   a file, say called “my_add_contextual_help.php”, in the folder wp-content/mu-
   plugins/. In the folder does not exist, create it.
 * More info about must-use plugins: [http://codex.wordpress.org/Must_Use_Plugins](http://codex.wordpress.org/Must_Use_Plugins)
 *  Anonymous User
 * (@anonymized-3085)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-eshop-debug-warning-add_contextual_help-deprecated/#post-2455291)
 * not needed, I added your code already to the current release, thank you 😉
 * oh and check the about page.
 *  [TreeParlor](https://wordpress.org/support/users/treeparlor/)
 * (@treeparlor)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-eshop-debug-warning-add_contextual_help-deprecated/#post-2455292)
 * Saaaawwwweet! Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘[Plugin: eShop] Debug warning: add_contextual_help deprecated’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/eshop_d6e4b8.svg)
 * [eShop](https://wordpress.org/plugins/eshop/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/eshop/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/eshop/)
 * [Active Topics](https://wordpress.org/support/plugin/eshop/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/eshop/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/eshop/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [TreeParlor](https://wordpress.org/support/users/treeparlor/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-eshop-debug-warning-add_contextual_help-deprecated/#post-2455292)
 * Status: resolved