# elementor/3.24.5/core/isolation/wordpress-adapter.php

Elementor Website Builder – more than just a page builder, version 3.24.5. 45 lines.

- Page: https://pluginprobe.com/plugins/elementor/3.24.5/code/core/isolation/wordpress-adapter.php
- Raw: https://pluginprobe.com/plugins/elementor/3.24.5/raw/core/isolation/wordpress-adapter.php
- Modified: 2024-08-25T13:59:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/elementor/3.24.5/code/core/isolation/wordpress-adapter.php#L10-L20`.

```php
<?php
namespace Elementor\Core\Isolation;

class Wordpress_Adapter implements Wordpress_Adapter_Interface {

	public function get_plugins(): array {
		return get_plugins();
	}

	public function is_plugin_active( $plugin_path ): bool {
		return is_plugin_active( $plugin_path );
	}

	public function wp_nonce_url( $url, $action ): string {
		return wp_nonce_url( $url, $action );
	}

	public function self_admin_url( $path ): string {
		return self_admin_url( $path );
	}

	/**
	 * Retrieves an array of pages (or hierarchical post type items).
	 *
	 * @return WP_Post[]|false Array of pages (or hierarchical post type items). Boolean false if the
	 *                         specified post type is not hierarchical or the specified status is not
	 *                         supported by the post type.
	 */
	public function get_pages( $args ) : ?array {
		return get_pages( $args );
	}

	public function get_option( $option_key ) {
		return get_option( $option_key );
	}

	public function update_option( $option_key, $option_value ) : void {
		update_option( $option_key, $option_value );
	}

	public function add_option( $option_key, $option_value ) : void {
		add_option( $option_key, $option_value );
	}
}

```
