Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
ajax example ajaxurl, jQuery( '#theForm' ).seraizlize(), function( response ) {
* At this point, response should equal a json encoded response
* SO if you're doing something like this:
* wp_send_json_success( array( 'some_key' => 'some value' ) )
* you can access it like so:
if ( response.success ) {
// Success data is stored within
alert( );
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.