| Server IP : 13.126.101.145 / Your IP : 216.73.216.159 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ip-11-115-0-196 6.8.0-1039-aws #41~22.04.1-Ubuntu SMP Thu Sep 11 10:54:48 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.3.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/rentals_updated/wp-content/plugins/elementor/core/isolation/ |
Upload File : |
<?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 );
}
/**
* Creates and returns a wp query instance.
*
* @return \WP_Query
*/
public function get_query( $args ) : ?\WP_Query {
return new \WP_Query( $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 );
}
public function add_query_arg( $args, $url ) : string {
return add_query_arg( $args, $url );
}
public function has_custom_logo() : bool {
return has_custom_logo();
}
public function current_user_can( $capability, $args ) : bool {
return current_user_can( $capability, $args );
}
public function get_post_status( $post_id ) : string {
return get_post_status( $post_id );
}
}