You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
I've copied the code exactly from the "Limit custom statuses based on user role" page, then deleted all
permitted_statuses
exceptdraft
, and thecontributor
role is still able to set any custom status.If I
print_r( $custom_statuses )
right before doing thereturn
, I'm seeing that$custom_statuses
does have the correct data, but just doesn't seem to be affecting anything through the filter.The text was updated successfully, but these errors were encountered: