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

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -