admin_url( 'admin-ajax.php' ), 'nonce' => wp_create_nonce( 'zbounce_eval_validator' ), 'strings' => [ 'invalid_email' => __( 'Invalid email format', 'zbounce-email-validator' ), 'valid' => __( 'Valid', 'zbounce-email-validator' ), 'invalid' => __( 'Invalid', 'zbounce-email-validator' ), 'yes' => __( 'Yes', 'zbounce-email-validator' ), 'no' => __( 'No', 'zbounce-email-validator' ), 'unknown' => __( 'Not checked', 'zbounce-email-validator' ), 'unreliable' => __( 'Yes (unreliable)', 'zbounce-email-validator' ), 'accepts_all' => __( 'Server accepts all', 'zbounce-email-validator' ), 'checking' => __( 'Checking…', 'zbounce-email-validator' ), 'allowed' => __( 'Allowed', 'zbounce-email-validator' ), 'rejected' => __( 'Rejected', 'zbounce-email-validator' ), 'cached' => __( 'Cache', 'zbounce-email-validator' ), 'fresh' => __( 'ZBounce API', 'zbounce-email-validator' ), 'error' => __( 'Validation error', 'zbounce-email-validator' ), ], ] ); } public static function enqueue_admin_assets( $hook ) { if ( 'settings_page_zbounce-email-validator' === $hook ) { self::enqueue_frontend_assets( true ); wp_enqueue_style( 'zbounce-email-validator' ); wp_enqueue_script( 'zbounce-email-validator' ); wp_enqueue_style( 'zbounce-email-validator-admin', ZBOUNCE_EVAL_URL . 'assets/css/admin.css', [], ZBOUNCE_EVAL_VERSION ); } } }