Ocultar plugins del listado de administración de WordPress

PHOTO EMBED

Tue Oct 25 2022 08:49:52 GMT+0000 (Coordinated Universal Time)

Saved by @netropol #php

<?php
function plugin_hide() {
  global $wp_list_table;
  // replace your plugin url here
  $hidearr = array('advanced-custom-fields/acf.php' , 'otro-plugin/plugin.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', 'plugin_hide');
?>
content_copyCOPY

https://medium.com/makers-byte/how-to-hide-plugins-from-the-wordpressadmin-plugin-list-589edb2fd897