Title: Plugin uses depricated function
Last modified: April 2, 2020

---

# Plugin uses depricated function

 *  [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/plugin-uses-depricated-function/)
 * This plugin triggers the following error:
 * contextual_help is deprecated since version 3.3.0! Use get_current_screen()->
   add_help_tab(), get_current_screen()->remove_help_tab() instead.
 * You can remove the errormessage (and also the contextual help) by removing (put//
   in front of) line 52 of
    …/sendgrid-email-delivery-simplified/lib/class-sendgrid-
   settings.php line 52:
 *     ```
       add_filter( 'contextual_help', array( __CLASS__, 'show_contextual_help' ), 10, 3 );
       ```
   
    -  This topic was modified 6 years, 1 month ago by [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/).
      Reason: added solution

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

 *  [Natacha](https://wordpress.org/support/users/chickwithbob/)
 * (@chickwithbob)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/plugin-uses-depricated-function/#post-12618849)
 * We are also getting this same error since upgrading to WordPress 5.4 today.
 * PHP Deprecated: contextual_help is **deprecated** since version 3.3.0! Use get_current_screen()-
   >add_help_tab(), get_current_screen()->remove_help_tab() instead.
 * I did a site-wide search and found your plugin uses ‘contextual_help’.
    I deactivate
   SendGrid only, and the error goes away, hence this error is definitely caused
   by SendGrid.
 *  [Chrome Orange](https://wordpress.org/support/users/chrome-orange/)
 * (@chrome-orange)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/plugin-uses-depricated-function/#post-12656661)
 * To correct this change this file
 * wp-content/plugins/sendgrid-email-delivery-simplified/lib/class-sendgrid-settings.
   php
 * Change line 52 to
 * `add_filter( 'current_screen', array( __CLASS__, 'show_contextual_help' ), 10);`
 * And the show_contextual_help method (starts on line 101)
 *     ```
         public static function show_contextual_help()
         {
           $screen = get_current_screen();
   
             if ( SENDGRID_PLUGIN_STATISTICS == $screen->id or SENDGRID_PLUGIN_SETTINGS == $screen->id ) {
   
                 $screen->add_help_tab(
                                   array(
                                     'id'      => 'sendgrid_help_tab',
                                     'title'   => __( 'Help' ),
                                     'content' => file_get_contents( dirname( __FILE__ ) . '/../view/sendgrid_contextual_help.php' )
                                     )
                                 );
   
             }
   
         }
       ```
   
 *  [nikkins82](https://wordpress.org/support/users/nikkins82/)
 * (@nikkins82)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/plugin-uses-depricated-function/#post-12720807)
 * Same error as well. Sendgrid Support has not responded.
 *  [blockmonkey](https://wordpress.org/support/users/blockmonkey/)
 * (@blockmonkey)
 * [6 years ago](https://wordpress.org/support/topic/plugin-uses-depricated-function/#post-12759588)
 * Been noticing the same error.
 * Sent a ticket into SendGrid about this – I’ll update this post if I hear anything.
    -  This reply was modified 6 years ago by [blockmonkey](https://wordpress.org/support/users/blockmonkey/).
 *  [blockmonkey](https://wordpress.org/support/users/blockmonkey/)
 * (@blockmonkey)
 * [6 years ago](https://wordpress.org/support/topic/plugin-uses-depricated-function/#post-12799467)
 * Well they finally replied to the ticket.
 * “At this time, our engineering team does not have any plans to update the WordPress
   plugin or make any additional changes. I sincerely apologize for any inconvenience
   caused.”
 *  [inorman](https://wordpress.org/support/users/inorman/)
 * (@inorman)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/plugin-uses-depricated-function/#post-13612948)
 * Thanks [@chrome-orange](https://wordpress.org/support/users/chrome-orange/) for
   the solution.
 * I deactivated the Sendgrid plugin, and edited the ~/lib/class-sendgrid-settings.
   php file with the built-in WordPress Plugin Editor with the code from your post(
   I replaced both line 52 and the show_contextual_help() function code as you outlined),
   updated the file and reactivated the plugin and it all seems to work now without
   the error.

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

The topic ‘Plugin uses depricated function’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sendgrid-email-delivery-simplified_264460.
   svg)
 * [SendGrid](https://wordpress.org/plugins/sendgrid-email-delivery-simplified/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sendgrid-email-delivery-simplified/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sendgrid-email-delivery-simplified/)
 * [Active Topics](https://wordpress.org/support/plugin/sendgrid-email-delivery-simplified/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sendgrid-email-delivery-simplified/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sendgrid-email-delivery-simplified/reviews/)

## Tags

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

 * 6 replies
 * 6 participants
 * Last reply from: [inorman](https://wordpress.org/support/users/inorman/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/plugin-uses-depricated-function/#post-13612948)
 * Status: not resolved