steva
asked on
Strange use of WordPress add_action()
I expect add_action() to specify a hook name and then a function to call when the hook fires, but I came across the text below in "WordPress Web Application Development, 2nd ed on page 29:
“We need to define AJAX handler functions using the WordPress add_action function:
add_action( ‘wp_ajax_mark_answer_statu s’, ‘wpwa_mark_answer_status’ );
There's no existing hook with the name "wp_ajax_mark_answer_statu s" so could someone explain what's going on?
Thanks for your help.
“We need to define AJAX handler functions using the WordPress add_action function:
add_action( ‘wp_ajax_mark_answer_statu
There's no existing hook with the name "wp_ajax_mark_answer_statu
Thanks for your help.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER