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

41 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
You are viewing 1 out of 1 answers, click here to view all answers.
Write your answer.
Register or Login

Search questions

Question stats

  • ActiveDecember 10, 2020
  • Views41 times
  • Answers1 answer

Questions

Woocommerce Facebook Pixel track 0 Answers | 0 Votes
MC4WP: Mailchimp for WordPress Send data from Contact form 7 with Checkbox, Radio Buton Value 0 Answers | 0 Votes
Silencing errors from certain plugins and themes in Query Monitor 0 Answers | 0 Votes
Woocommerce Hide Free Shipping and Show based on conditions 0 Answers | 0 Votes
Mac Terminal rename all files inside a folder 0 Answers | 0 Votes
WordPress Add a Post Type Confirmation message after Submit Button Click 0 Answers | 0 Votes
Woocommerce Single product lightbox disable 0 Answers | 0 Votes
Woocommerce Sale Text Shortcode 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 }