From 306e1f898efd384050c45af4a52237fdac3b45ba Mon Sep 17 00:00:00 2001 From: Nonimart Date: Tue, 10 Jun 2025 15:54:04 +0200 Subject: [PATCH] FEATURE ehnahnving the feature --- includes/api.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/includes/api.php b/includes/api.php index 16fcb79..dd7c6c6 100644 --- a/includes/api.php +++ b/includes/api.php @@ -22,7 +22,9 @@ add_action('rest_api_init', function () { function build_revue_authors($request) { - write_log($request); + $revueID = esc_html($request->get_param('revue-id')); + write_log('revueID'); + write_log($revueID); // $previousActivePage = esc_html($request->get_param('active-page')) ?? 1; // $activeTermID = esc_html($request->get_param('active-term-id')); @@ -79,6 +81,9 @@ function build_revue_authors($request) // 'max_num_pages' => $newsPostsDatas->max_num_pages, // ); + $response_data = array( + 'message' => 'Hello World', + ); $response = new WP_REST_Response($response_data);