Thank you for your response, I understand now.
Best regards.
Thank you so much for such a good support!
It suits me perfectly!
That unfortunately wont do what I need, that will filter the data after input. I need to filter data when displaying available status to users.
So instead of having as possible duplicated post status:
– Draft
– Pending
– Private
– Public
I want to have as only options:
– Draft
– Pending
I need something like this on /inc/postform_ui.php
function mpd_publish_top_right(){
$post_statuses = get_post_statuses();
$sites = mpd_wp_get_sites()
$post_statuses = apply_filters( 'mpd_filter_display_poststatuses', $post_statuses );
?>
Please let me know the slug you will use for your filter so that I can implement it right away while having no problems when updating.
Thanks!