Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ajax actions wordpress

function foo() {
    echo 'bar';
}
add_action('wp_ajax_foo', 'foo' ); // executed when logged in
add_action('wp_ajax_nopriv_foo', 'foo' ); // executed when logged out
Source by wordpress.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #ajax #actions #wordpress
ADD COMMENT
Topic
Name
9+3 =