Support » Plugin: The Ultimate Video Player For WordPress - by Presto Player » How to remove presto player menu in Gutenberg top bar?

  • Resolved anonmeimei

    (@anonmeimei)


    I am decluttering the Gutenberg interface, and I would like to remove the PrestoPlayer menu as seen here: https://imgur.com/a/YE8VR5Y

    I don’t know how to code, so can somebody provide me with a filter I can add to functions.php?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Andre Gagnon

    (@2winfactor)

    You can click the “Unpin from toolbar” button on the panel to hide it.

    https://share.getcloudapp.com/geuggPeY

    Let me know if you need any additional assistance!

    Thread Starter anonmeimei

    (@anonmeimei)

    Yes, but that only hides the menu on my end. I want to hide it for all users

    Plugin Author Andre Gagnon

    (@2winfactor)

    That I believe Gutenberg requires you to use custom code. You can do something like this:

    
    add_action('admin_print_footer_scripts', 'action_unregister_presto_control', 100);
    function action_unregister_presto_control()
    {
        if (is_admin()) {
            $screen = get_current_screen();
            if ('post' == $screen->base) {
                echo '<script>';
                echo "wp.plugins.unregisterPlugin( 'presto-player' );";
                echo '</script>';
            }
        }
    }
    
    Thread Starter anonmeimei

    (@anonmeimei)

    It worked, thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.