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

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -