C2Code - Code 2 Share
  • Questions
  • Ask a question
  • Tags
  • Timestamp Converter
  • More
    • IPinfo
    • Custom Function Plugin
    • Page Preloader
    • Smart Finance
  • Login
Select Page

WP Hide Plugins from Plugins list function

72 viewsDecember 10, 2020PHP WordPress WP Functions
0
Avatar photo
admin153 December 10, 2020 0 Comments
admin Answered question December 10, 2020
Add a Comment

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
Avatar photo
admin153 Posted December 10, 2020 0 Comments

function hide_plugin_from_list() {
  global $wp_list_table;
  $hidearr = array('plugin-directory/plugin-file.php');
  $myplugins = $wp_list_table->items;
  foreach ($myplugins as $key => $val) {
    if (in_array($key,$hidearr)) {
      unset($wp_list_table->items[$key]);
    }
  }
}
 add_action('pre_current_active_plugins', 'hide_plugin_from_list');

admin Answered question December 10, 2020
Add a Comment
Write your answer.
Register or Login

Search questions

Question stats

  • ActiveDecember 10, 2020
  • Views72 times
  • Answers1 answer

Questions

MPOGOAL Link Daftar Judi Sportsbook Pulsa Nomor 1 Terlengkap 0 Answers | 0 Votes
¿Por qué elegir Magis TV APK? 0 Answers | 0 Votes
Magis TV APK: Entretenimiento portátil y gratuito 0 Answers | 0 Votes
Magis TV APK: Televisión moderna a tu alcance 0 Answers | 0 Votes
Magis TV APK: Entretenimiento sin límites 0 Answers | 0 Votes
Looking for the Best Muscle Building Supplements? Start Here 0 Answers | 0 Votes
Supplements to Help You Bulk Up Without Feeling Bloated 0 Answers | 0 Votes
Muscle Building Supplements for Bodybuilders: Advanced Guide 0 Answers | 0 Votes
  • Facebook
  • X
  • Instagram
  • RSS
© C2Code 2020
  • Login
  • Sign Up
Forgot Password?
Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.
body::-webkit-scrollbar { width: 7px; } body::-webkit-scrollbar-track { border-radius: 10px; background: #f0f0f0; } body::-webkit-scrollbar-thumb { border-radius: 50px; background: #dfdbdb }