Skip to content

Commit

Permalink
fix taxonomy name
Browse files Browse the repository at this point in the history
  • Loading branch information
vagrant committed Mar 9, 2017
1 parent 8443aeb commit 7243be2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thirstyaffiliates-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -92,4 +92,4 @@ function thirstylink_category_enable_rest_api() {
'type' => 'string',
],
] );
} );
} );

0 comments on commit 7243be2

Please sign in to comment.