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

WP Hide Plugins from Plugins list function

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

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
Avatar photo
admin141 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
  • Views630 times
  • Answers1 answer

Questions

How to Enable HSTS in WordPress Site 0 Answers | 0 Votes
WordPress Select Parent category based on Child Category Select 0 Answers | 0 Votes
How can carbon credits work? 0 Answers | 0 Votes
Woocommerce hide free shipping if non free shipping product added 0 Answers | 0 Votes
Woocommerce add alert if free shipping items and non-free shipping items added in cart 0 Answers | 0 Votes
Woocommerce Add Custom Shipping fee based on Shipping Class 0 Answers | 0 Votes
How can I pick a reputable vehicle shipping company? 0 Answers | 0 Votes
Le poker est-il plus habile que le blackjack? 0 Answers | 0 Votes

Popular Questions

  • Facebook
  • X
  • Instagram
  • RSS
© C2Code 2020
  • Login
Forgot Password?
Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.