Converting create_function to an anonymous function

Eric Lockard asked 9 months ago
1 Answers
Eric Lockard answered 9 months ago

I’m using CherryFramework 3. I’m getting an error message about create_function() being deprecated in PHP 7.3
How do I convert the create_function in /wp-content/plugins/cherry-plugin-master/includes/widgets/widgets-manager.php  to an anonymous function. When I try to create the anonymous function with use to extend the scope of the  cherry_condition function I get 5 error messages saying:
Undefined variable: options_type
Undefined variable: options
Undefined variable: users
Undefined variable: id
 Undefined variable: cherry_condition

Your Answer

17 + 8 =