wp send json success or echo wp_send_json code example Example: wp_send_json wp_send_json() wp_send_json_success() wp_send_json_error() wp_die()