We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 742067b + 00932a9 commit 89171c2Copy full SHA for 89171c2
mu-plugins/osi-api/osi-api.php
@@ -49,7 +49,7 @@ public function register_routes() {
49
'callback' => array( $this, 'get_licenses' ),
50
'permission_callback' => '__return_true',
51
'args' => array(
52
- 'id' => array(
+ 'name' => array(
53
'required' => false,
54
'type' => 'string',
55
'description' => 'Filter by license name',
@@ -111,7 +111,7 @@ public function register_routes() {
111
public function get_licenses( WP_REST_Request $data ) {
112
113
// Check if we have an ID passed.
114
- $searched_slug = $data->get_param( 'id' );
+ $searched_slug = $data->get_param( 'name' );
115
116
// Check if we have any keyword passed.
117
$keyword = $data->get_param( 'keyword' );
0 commit comments