Exclude categories in WP REST API response through function
-
I want to exclude some categories from the API response but not using the argument exclude but through function:
When using the default route: https://example.com/wp-json/wp/v2/categories
I want to return the results for:
https://example.com/wp-json/wp/v2/categories?exclude=26995,41088
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Exclude categories in WP REST API response through function’ is closed to new replies.