Skip to content

Conversation

@DavidCramer
Copy link
Contributor

No description provided.

Copy link
Contributor

@pereirinha pereirinha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DavidCramer

I left you some comments.

* Add filters for REST API.
*/
protected function add_rest_filters() {
$types = get_post_types_by_support( 'author' );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DavidCramer

Any particular reason to not use get_post_types() instead?
I'm trying to think of a case why one would have a CPT without author, but…

Copy link
Contributor

@pereirinha pereirinha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great.

@pereirinha pereirinha merged commit 772e0c9 into uat Apr 11, 2022
@pereirinha pereirinha deleted the fix/use-correct-filtering branch April 26, 2022 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants