Hide a specific plugin in WordPress

i am using this Gist
https://gist.github.com/carlodaniele/5b8343dd17a64c69d04459bffad2312c
This works fine, but the problem is i do not want to disable a plugin for a specific page, instead of i want to disable a plugin on my website home-page.

but here we can only add a page or post slag where we want to disable the plugin $is_contact_page = strpos( $request_uri, ‘/contact/’ );

but my main purpose is to disable a plugin on the home page.
how can i do this?

Thanks in advance

Read more here:: Hide a specific plugin in WordPress

Leave a Reply

Your email address will not be published. Required fields are marked *