Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ef_custom_status_list filter doesn't seem to be working #586

Closed
jsit opened this issue Jan 27, 2020 · 1 comment · Fixed by #587
Closed

ef_custom_status_list filter doesn't seem to be working #586

jsit opened this issue Jan 27, 2020 · 1 comment · Fixed by #587

Comments

@jsit
Copy link
Contributor

jsit commented Jan 27, 2020

I've copied the code exactly from the "Limit custom statuses based on user role" page, then deleted all permitted_statuses except draft, and the contributor role is still able to set any custom status.

If I print_r( $custom_statuses ) right before doing the return, I'm seeing that $custom_statuses does have the correct data, but just doesn't seem to be affecting anything through the filter.

@jsit
Copy link
Contributor Author

jsit commented Jan 27, 2020

It looks like this is because the get_custom_statuses() function in modules/custom-status/custom-status.php isn't being run through the ef_custom_status_list filter.

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 a pull request may close this issue.

1 participant