[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
elementor
/
modules
/
checklist
/
data
/
endpoints
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 steps.php
1,541 B
SET
[ EDIT ]
|
[ DEL ]
📄 user-progress.php
1,021 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: user-progress.php
<?php namespace Elementor\Modules\Checklist\Data\Endpoints; use Elementor\Data\V2\Base\Endpoint as Endpoint_Base; use Elementor\Modules\Checklist\Module as Checklist_Module; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class User_Progress extends Endpoint_Base { protected function register() { parent::register(); $this->register_items_route( \WP_REST_Server::EDITABLE ); } public function get_name(): string { return 'user-progress'; } public function get_format(): string { return 'checklist'; } public function get_items( $request ) { return $this->get_checklist_data(); } public function update_items( $request ) { Checklist_Module::instance()->update_user_progress( $request->get_json_params() ); return [ 'data' => 'success', ]; } private function get_checklist_data(): array { $checklist_module = Checklist_Module::instance(); $progress_data = $checklist_module->get_user_progress_from_db(); return [ 'data' => $progress_data, ]; } }