diff --git a/thirstyaffiliates-api.php b/thirstyaffiliates-api.php index ef1569e..16bd4fc 100644 --- a/thirstyaffiliates-api.php +++ b/thirstyaffiliates-api.php @@ -35,7 +35,7 @@ function thirstylink_post_enable_rest_api() { function thirstylink_category_enable_rest_api() { global $wp_taxonomies; - $taxonomy_name = 'thirstylink_category'; + $taxonomy_name = 'thirstylink-category'; if ( isset( $wp_taxonomies[ $taxonomy_name ] ) ) { $wp_taxonomies[ $taxonomy_name ]->show_in_rest = true; $wp_taxonomies[ $taxonomy_name ]->rest_base = $taxonomy_name; @@ -92,4 +92,4 @@ function thirstylink_category_enable_rest_api() { 'type' => 'string', ], ] ); -} ); \ No newline at end of file +} );