Contact

I consent to having this website store my submitted information so they can respond to my inquiry. See our privacy policy to learn more how we use data.
 

1 thought on “Contact”

  1. you published a great code snippet to add to functions.php that would allow someone to “hide” plugins from the plugin list. the code was:

    function hide_plugin_trickspanda() {

    global $wp_list_table;

    $hidearr = array(‘wp-smush-pro/wp-smush.php’);

    $hidearr = array(‘wp-hummingbird/wp-hummingbird.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_trickspanda’);

    Is it possible to use this to “hide” several plugins? I tried, but it sort of picks the last one to hide , so it does one at a time. any info would be great

Comments are closed.