Hi @epipo, what’s the reason you’d like to hide these from the admin bar option, please?
I’ll see if there’s a way we can provide a solution to hide them, but this is the first such request we’ve received, so an answer to the above question would help 🙂
Hi @markzahra,
Thanks for getting back to me.
Well it’s just that my client’s website is used by several people and he doesn’t want them to mess up with these elements.
Right now I’ve hide them using CSS but if at some point you could add some filters in the register_post_type functions it could be helpful. I do understand that this is not a priority as it looks like I’m an isolated case.
Anyway, thanks for your work 🙂
@epipo The custom post type arguments are actually filterable!
add_filter('wpra/feeds/sources/cpt/args', function ($args) {
$args['show_in_admin_bar'] = false;
return $args;
});
add_filter('wpra/feeds/blacklist/cpt/args', function ($args) {
$args['show_in_admin_bar'] = false;
return $args;
});
That’s a valid point for sites with multiple users, we’ll look into it.
Thanks for chiming in @mekku 🙂
Wow, didn’t noticed that! Thanks @mekku 🙂