How to change $conditional_function = create_function to work with php 8
-
Hi i have a lot of lines like this in my wordpress theme (it is old) and it gives me many errors.
The main culprit is the create_function part.
error says: PHP Deprecated: Function create_function() is deprecated
how would i change this:
$conditional_function = create_function('', 'return '.$tpl->menu[$name]['state_rule'].';');to work with php 8?
thanks
-
Hi there,
Please provide us with the URL of the website you’re referring to so that we can point you in the right direction.
Thank You! :)
- The topic ‘How to change $conditional_function = create_function to work with php 8’ is closed to new replies.