Cách ẩn 1 plugin WordPress từ danh sách Plugins trong Admin

5/5 - (3 bình chọn)

ZubiCloud hướng dẫn người dùng thiết kế website bằng wordpress, Cách ẩn 1 plugin WordPress từ danh sách Plugins trong Admin

How to Hide Specific plugin from installed plugin list

Chèn đoạn code sau vào file funtions.php trong themes.

add_filter( 'all_plugins', 'hide_plugins');
function hide_plugins($plugins)
{
// Hide hello dolly plugin
if(is_plugin_active('anbiweb-admin/custom-ad.php')) {
unset( $plugins['anbiweb-admin/custom-ad.php'] );
}
// Hide disqus plugin
if(is_plugin_active('elementor/elementor.php')) {
unset( $plugins['elementor/elementor.php'] );
}
if(is_plugin_active('elementor-pro/elementor-pro.php')) {
unset( $plugins['elementor-pro/elementor-pro.php'] );
}
return $plugins;
}
5/5 - (3 bình chọn)


  1. First off I would like to say terrific blog!

    I had a quick question that I’d like to ask if you do not mind.
    I was curious to find out how you center yourself and
    clear your thoughts prior to writing. I’ve had trouble clearing
    my mind in getting my ideas out there. I
    do enjoy writing however it just seems like the first 10 to
    15 minutes are usually lost simply just trying to figure out how to begin. Any suggestions or hints?

    Thank you!

    Here is my blog post; http://new.stargardzki.stargard.pl

Trả lời

Email của bạn sẽ không được hiển thị công khai.