wordpress - wp_send_json with redirect and getting json data -
i using wp_send_json in wordpress application, see below code
$redirect_page ="contact_page";
wp_send_json( array( 'result' => 'success', 'redirect' => ($redirect) ) );
here, how can 'result' value ('success') in contact page template page?. please provide better idea.
here, "contact_page" page template.
please let me know if need more explanations.
thanks
Comments
Post a Comment