wordpress get json data code example
Example: wordpress return json
wp_send_json();
wp_send_json_success( mixed $data = null, int $status_code = null, int $options )
wp_send_json_error();
wp_send_json();
wp_send_json_success( mixed $data = null, int $status_code = null, int $options )
wp_send_json_error();