/var/www/p4ela.net/www/wp-content/plugins/image-optimization/classes
NameSizeModeActions
async-operation/-0777rm
client/-0777rm
exceptions/-0777rm
file-system/-0777rm
image/-0777rm
migration/-0777rm
rest/-0777rm
basic-enum.php6990666editdlrm
file-utils.php25920666editdlrm
locale.php5770666editdlrm
logger.php8770666editdlrm
module-base.php72700666editdlrm
route.php113300666editdlrm
utils.php32070666editdlrm
Edit: /var/www/p4ela.net/www/wp-content/plugins/image-optimization/classes/utils.php (3207B)
modules_manager->get_modules( $module_name ); } public static function get_module_component( $module_name, $component ) { $module = self::get_module( $module_name ); if ( $module ) { return $module->get_component( $component ); } return null; } /** * is_elementor_installed * @return bool */ public static function is_elementor_installed(): bool { $plugins = get_plugins(); return isset( $plugins['elementor/elementor.php'] ); } /** * is_elementor_installed_and_active * should be used only after `plugins_loaded` action * @return bool */ public static function is_elementor_installed_and_active(): bool { return did_action( 'elementor/loaded' ); } public static function is_media_page(): bool { $current_screen = get_current_screen(); if ( ! $current_screen ) { return false; } return 'upload' === $current_screen->id && 'attachment' === $current_screen->post_type; } public static function is_media_upload_page(): bool { $current_screen = get_current_screen(); if ( ! $current_screen ) { return false; } return 'media' === $current_screen->id && 'add' === $current_screen->action; } public static function is_single_attachment_page(): bool { $current_screen = get_current_screen(); if ( ! $current_screen ) { return false; } return 'attachment' === $current_screen->id && 'post' === $current_screen->base; } public static function is_plugin_page(): bool { $current_screen = get_current_screen(); return str_contains( $current_screen->id, 'image-optimization-' ); } public static function is_plugin_settings_page(): bool { $current_screen = get_current_screen(); return str_contains( $current_screen->id, 'image-optimization-settings' ); } public static function is_bulk_optimization_page(): bool { $current_screen = get_current_screen(); return str_contains( $current_screen->id, 'image-optimization-bulk-optimization' ); } public static function user_is_admin(): bool { return current_user_can( 'manage_options' ); } public static function is_wp_dashboard_page(): bool { $current_screen = get_current_screen(); return str_contains( $current_screen->id, 'dashboard' ); } public static function is_wp_updates_page(): bool { $current_screen = get_current_screen(); return str_contains( $current_screen->id, 'update' ); } }