X7ROOT File Manager
Current Path:
/home/oakwood/public_html/wp-content/plugins/ewww-image-optimizer/classes
home
/
oakwood
/
public_html
/
wp-content
/
plugins
/
ewww-image-optimizer
/
classes
/
ðŸ“
..
📄
class-async-key-verify.php
(993 B)
📄
class-async-media-optimize.php
(2.82 KB)
📄
class-async-request.php
(2.9 KB)
📄
class-async-scan.php
(943 B)
📄
class-async-test-optimize.php
(917 B)
📄
class-async-test-request.php
(1.83 KB)
📄
class-background-process-attachment-update.php
(1.66 KB)
📄
class-background-process-flag.php
(2.68 KB)
📄
class-background-process-image.php
(14.01 KB)
📄
class-background-process-media.php
(19.61 KB)
📄
class-background-process-ngg.php
(2.72 KB)
📄
class-background-process-ngg2.php
(2.53 KB)
📄
class-background-process.php
(16.59 KB)
📄
class-backup.php
(16.97 KB)
📄
class-base.php
(61.09 KB)
📄
class-ewww-flag.php
(40.69 KB)
📄
class-ewww-image.php
(55.54 KB)
📄
class-ewww-nextcellent.php
(31.76 KB)
📄
class-ewww-nextgen.php
(49.03 KB)
📄
class-ewwwdb.php
(2.98 KB)
📄
class-ewwwio-cli.php
(36.26 KB)
📄
class-ewwwio-gd-editor.php
(16.08 KB)
📄
class-ewwwio-gmagick-editor.php
(2.5 KB)
📄
class-ewwwio-imagick-editor.php
(31.31 KB)
📄
class-ewwwio-relative-migration.php
(5.35 KB)
📄
class-exactdn.php
(181.92 KB)
📄
class-hs-beacon.php
(3.02 KB)
📄
class-js-webp.php
(46.33 KB)
📄
class-lazy-load.php
(50.09 KB)
📄
class-local.php
(59.34 KB)
📄
class-page-parser.php
(18.96 KB)
📄
class-picture-webp.php
(19.49 KB)
📄
class-plugin.php
(60.82 KB)
📄
class-tracking.php
(19.76 KB)
Editing: class-hs-beacon.php
<?php /** * Help integration functions for embedding the HS Beacon for users that have opted in. * * @package EIO * @since 3.5.1 */ namespace EWWW; if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Embed HS Beacon to give users more help when they need it. * * @since 3.5.1 */ class HS_Beacon extends Base { /** * Get things going */ public function __construct() { parent::__construct(); \add_action( 'admin_action_eio_opt_into_hs_beacon', array( $this, 'check_for_optin' ) ); \add_action( 'admin_action_eio_opt_out_of_hs_beacon', array( $this, 'check_for_optout' ) ); } /** * Check for a new opt-in via the admin notice */ public function check_for_optin() { \check_admin_referer( 'eio_beacon' ); $permissions = \apply_filters( 'easyio_admin_permissions', 'manage_options' ); if ( ! \current_user_can( $permissions ) ) { \wp_die( \esc_html__( 'Access denied.', 'ewww-image-optimizer' ) ); } $this->debug_message( '<b>' . __METHOD__ . '()</b>' ); $this->set_option( $this->prefix . 'enable_help', 1 ); $this->set_option( $this->prefix . 'enable_help_notice', 1 ); \wp_safe_redirect( \remove_query_arg( 'action', \wp_get_referer() ) ); exit; } /** * Check for a new opt-out via the admin notice */ public function check_for_optout() { \check_admin_referer( 'eio_beacon' ); $permissions = \apply_filters( 'easyio_admin_permissions', 'manage_options' ); if ( ! \current_user_can( $permissions ) ) { \wp_die( \esc_html__( 'Access denied.', 'ewww-image-optimizer' ) ); } $this->debug_message( '<b>' . __METHOD__ . '()</b>' ); \delete_option( $this->prefix . 'enable_help' ); \delete_network_option( null, $this->prefix . 'enable_help' ); $this->set_option( $this->prefix . 'enable_help_notice', 1 ); \wp_safe_redirect( \remove_query_arg( 'action', \wp_get_referer() ) ); exit; } /** * Display the admin notice to users that have not opted-in or out * * @access public * @param string $network_class A string that indicates where this is being displayed. * @return void */ public function admin_notice( $network_class = '' ) { $this->debug_message( '<b>' . __METHOD__ . '()</b>' ); $hide_notice = $this->get_option( $this->prefix . 'enable_help_notice' ); if ( 'network-multisite-over' === $network_class ) { return; } if ( 'network-singlesite' === $network_class ) { return; } if ( $hide_notice ) { return; } if ( $this->get_option( $this->prefix . 'enable_help' ) ) { return; } if ( ! \current_user_can( 'manage_options' ) ) { return; } if ( ! \function_exists( 'is_plugin_active_for_network' ) && \is_multisite() ) { // Need to include the plugin library for the is_plugin_active function. require_once ABSPATH . 'wp-admin/includes/plugin.php'; } if ( \is_multisite() && \is_plugin_active_for_network( \constant( \strtoupper( $this->prefix ) . 'PLUGIN_FILE_REL' ) ) && ! \current_user_can( 'manage_network_options' ) ) { return; } if ( \strpos( __FILE__, 'plugins/easy' ) ) { \easyio_notice_beacon(); } } }
Upload File
Create Folder