deprecated php function
-
Hi, I’m using this snippet but I discovered that create_function() is deprecated. I have not found a solution to fix the problem. Any help will be greatly appreciated!
if ( !current_user_can(‘administrator’) ) {
add_action( ‘init’, create_function( ‘$a’, “remove_action( ‘init’, ‘wp_version_check’ );” ), 2 );
add_filter( ‘pre_option_update_core’, create_function( ‘$a’, “return null;” ) );
}
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘deprecated php function’ is closed to new replies.