• Resolved Etienne

    (@epipo)


    Hi,

    I’ve noticed the show_in_admin_bar option is set to true for the Feed Sources and the WPRSS Blacklist custom posts types. Is there any way to change this value to false or do I have to hide it with css?

    Thanks for your help!

    • This topic was modified 5 years, 4 months ago by Etienne.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Mark Zahra

    (@markzahra)

    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 ??

    Thread Starter Etienne

    (@epipo)

    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 ??

    Plugin Contributor Miguel Muscat

    (@mekku)

    @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;
    });
    
    Plugin Author Mark Zahra

    (@markzahra)

    That’s a valid point for sites with multiple users, we’ll look into it.

    Plugin Author Mark Zahra

    (@markzahra)

    Thanks for chiming in @mekku ??

    Thread Starter Etienne

    (@epipo)

    Wow, didn’t noticed that! Thanks @mekku ??

    Plugin Contributor Miguel Muscat

    (@mekku)

    You’re welcome ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Change ‘show_in_admin_bar’’ is closed to new replies.