📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-06-30 14:57:14
📂
/ (Root)
/
home
/
orkouolp
/
web
/
orkofarms.com
/
wp-content
/
plugins
/
image-optimization
/
modules
/
backups
/
classes
📍 /home/orkouolp/web/orkofarms.com/wp-content/plugins/image-optimization/modules/backups/classes
🔄 Refresh
✏️
Editing: route-base.php
Writable
<?php namespace ImageOptimization\Modules\Backups\Classes; use ImageOptimization\Classes\Route; use WP_REST_Request; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Route_Base extends Route { protected $auth = true; protected string $path = ''; public function get_methods(): array { return []; } public function get_endpoint(): string { return 'backups/' . $this->get_path(); } public function get_path(): string { return $this->path; } public function get_name(): string { return ''; } public function get_permission_callback( WP_REST_Request $request ): bool { $valid = $this->permission_callback( $request ); return $valid && user_can( $this->current_user_id, 'manage_options' ); } }
💾 Save Changes
❌ Cancel