FORMATEUR INDÉPENDANT AGRÉÉ • NDA : 93 06 10106 06

Le snippet du tutoriel youTube Make Crocoblock JetEngine

// Define your webhook endpoint add_action( ‘rest_api_init’, function () { register_rest_route( ‘myplugin/v1’, ‘/get_term_name/’, array( ‘methods’ => ‘GET’, ‘callback’ => ‘get_term_name_by_id’, ) ); }); // Function to retrieve term name by ID function get_term_name_by_id( $data ) { $term_id = $data[‘id’]; // Assuming you’re passing the term ID via the URL parameter ‘id’ // Check if the […]