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

WP Hide Plugins from Plugins list function

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

1 Answer

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

Questions

WordPress set email address and sender email function 0 Answers | 0 Votes
Some git command 0 Answers | 0 Votes
Stop video play after popup close 0 Answers | 0 Votes
Do you know the drawbacks of plastic fencing? 0 Answers | 0 Votes
Add line break “” after each hash from string 0 Answers | 0 Votes
Scroll margin top – Scroll Offset Css 0 Answers | 0 Votes
Sly slider 0 Answers | 0 Votes
WordPress Repeater custom fields without plugin 0 Answers | 0 Votes

Popular Questions

  • Facebook
  • Twitter
  • Google
  • 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.