Function create_function() is deprecated
-
Hi,
I am running PHP7.2 and have a Function create_function() is deprecated error
if ( is_plugin_active( 'woocommerce/woocommerce.php' ) ) { add_action( 'plugins_loaded', create_function( '', ' $filename = "include/"; $filename .= is_admin() ? "backend.inc.php" : "frontend.inc.php"; if( file_exists( plugin_dir_path( __FILE__ ) . $filename ) ) include( plugin_dir_path( __FILE__ ) . $filename ); ' ) );
what do I need to do to this piece of code to change the create_function to make it compatable in the file woocommerce-menu-extension.php?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Function create_function() is deprecated’ is closed to new replies.