Title: Deprecated create_function notice in php 7.2
Last modified: February 10, 2019

---

# Deprecated create_function notice in php 7.2

 *  [Jon Schroeder](https://wordpress.org/support/users/jonschr/)
 * (@jonschr)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/deprecated-create_function-notice-in-php-7-2/)
 * Looks like there are two places where this plugin is calling a deprecated function,
   create_function() (Deprecated in php 7.2).
 * Here’s what I believe to be a fix: replace line 216 of widgets/SectionMenuWidget.
   php with this:
 *     ```
       function register_JC_Section_Menu_Widget() {
            register_widget( "JC_Section_Menu_Widget" );
       }
       add_action( 'widgets_init', 'register_JC_Section_Menu_Widget' );
       ```
   
 * And replace line 189 of widgets/SplitMenuWidget.php with this:
 *     ```
       function register_JC_Split_Menu_Widget() {
       	register_widget( "JC_Split_Menu_Widget" );
       }
       add_action( 'widgets_init', 'register_JC_Split_Menu_Widget' );
       ```
   
 * Would you be able to update that to help eliminate the notification nags?

The topic ‘Deprecated create_function notice in php 7.2’ is closed to new replies.

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

 * 0 replies
 * 1 participant
 * Last reply from: [Jon Schroeder](https://wordpress.org/support/users/jonschr/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/deprecated-create_function-notice-in-php-7-2/)
 * Status: not resolved