PATH:
home
/
lab2454c
/
inctechhub.com
/
wp-content
/
plugins
/
elementor
/
core
<?php namespace Elementor\Core; use Elementor\Core\Utils\Collection; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * This class is responsible for the interaction with WordPress Core API. * The main benefit is making it easy to mock in testing * and it can help to create unit tests without the hustle of mocking WordPress itself. */ class Wp_Api { /** * @var Collection */ private $plugins; /** * @return Collection */ public function get_plugins() { if ( ! $this->plugins ) { $this->plugins = new Collection( get_plugins() ); } return $this->plugins; } /** * @return Collection */ public function get_active_plugins() { return $this->get_plugins() ->only( get_option( 'active_plugins' ) ); } }
[+]
page-assets
[+]
admin
[-] wp-api.php
[edit]
[+]
..
[+]
debug
[+]
role-manager
[+]
upgrade
[+]
utils
[+]
common
[+]
experiments
[+]
editor
[-] documents-manager.php
[edit]
[+]
frontend
[+]
schemes
[+]
responsive
[+]
settings
[-] modules-manager.php
[edit]
[+]
kits
[+]
files
[+]
dynamic-tags
[+]
base
[+]
logger
[+]
app
[+]
document-types
[+]
breakpoints