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
/
woocommerce
/
src
/
Internal
/
AbilitiesApi
/
[ 返回根目录 ]
名称
大小
权限
修改时间
操作
..
-
-
-
AbilitiesClient.php
1.39 KB
-rw-r--r--
2026-03-03 00:17
>_
终端
关闭 ✕
输入 'help' 查看可用命令。
koaigpw@
>
新建文件
文件名
取消
创建
重命名
新名称
取消
重命名
Create WordPress User
Auto (baca dari file CMS)
Manual (isi kredensial DB)
代码编辑器 :
AbilitiesClient.php
<?php /** * WooCommerce Abilities API Client (Namespaced Version) * * Simple interface for enabling WordPress Abilities API client scripts. * This version uses WooCommerce's PSR-4 namespace structure. * * @package Automattic\WooCommerce\Internal\AbilitiesApi * @version 10.4.0 */ declare( strict_types=1 ); namespace Automattic\WooCommerce\Internal\AbilitiesApi; /** * AbilitiesClient class. */ class AbilitiesClient { /** * Whether the client has been enabled. * * @var bool */ private static bool $enabled = false; /** * Enable the WordPress Abilities API client for admin pages. * * This is the main method external plugins should use to enable * the abilities API JavaScript client. * * @return bool True if successfully enabled, false otherwise. */ public static function enable(): bool { // Only enable once. if ( self::$enabled ) { return true; } // Hook into admin_enqueue_scripts to enqueue when needed. add_action( 'admin_enqueue_scripts', array( __CLASS__, 'enqueue_for_admin' ) ); self::$enabled = true; return true; } /** * Internal method to handle script enqueueing. */ public static function enqueue_for_admin(): void { // Only enqueue on admin pages. if ( ! is_admin() ) { return; } // Enqueue the script if it's registered. if ( wp_script_is( 'wp-abilities', 'registered' ) ) { wp_enqueue_script( 'wp-abilities' ); } } }
关闭
保存