> */ protected array $plugins = []; /** * Constructor. */ public function __construct() { if ( ! \function_exists( '\get_plugins' ) ) { require_once ABSPATH . 'wp-admin/includes/plugin.php'; } $this->plugins = get_plugins(); } /** * Retrieves all plugin files with plugin data. * * @since 1.30.0 * * @return array> */ public function get_plugins(): array { return $this->plugins; } }