• The text boxes seem to be working correctly but when I enable debug mode i get the following error.
    Deprecated: Function create_function() is deprecated in W:\websites\www.mywebsitename.com\wp-content\plugins\wp-special-textboxes\wp-special-textboxes.php on line 48
    How can I resolve this? I am ok with copying and pasting PHP code, but don’t understand it enough to know how to fix this.
    Thank you in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Change line 48 to:
    add_action(‘widgets_init’, function() {return register_widget(“special_text”); } );
    It should help.

    I have fixed it by replacing line 48 with:

    //  add_action('widgets_init', create_function('', 'return register_widget("special_text");'));
     	add_action('widgets_init', function() {
       return register_widget("special_text");
      }
      );
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using PHP 7.2 Create_Function() is deprecated’ is closed to new replies.