Generates "invalid callback" error from PHP
-
It’s the simplest of errors. It sets up two callbacks as follows:
add_action( 'admin_enqueue_scripts', 'enqueue_scripts' ); add_action( 'admin_print_footer_scripts', 'add_pointer_scripts' );
But there are no such functions “enqueue_scripts” or “add_pointer_scripts”! The author meant to use methods of the class “phpinfo” as callbacks. There should be a “phpinfo::” prefix to the function names.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Generates "invalid callback" error from PHP’ is closed to new replies.