jquery - WordPress AJAX PHP variable -



jquery - WordPress AJAX PHP variable -

if take wordpresses ajax/php illustration how phone call $whatever in function? if result outside of initial function (below) 0.

class="snippet-code-html lang-html prettyprint-override">add_action( 'wp_ajax_my_action', 'my_action_callback' ); function my_action_callback() { global $wpdb; // how access database $whatever = intval( $_post['whatever'] ); $whatever += 10; echo $whatever; // die(); }

wordpress ajax plugin code illustration page

i suspect simple when in mindset cannot beyond blinders.

php jquery ajax wordpress

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -