文件操作 - Database.php
返回文件管理
返回主菜单
删除本文件
文件: /storage/v12552/fortetemplate/public_html/wp-content/plugins/templately/includes/Utils/Database.php
编辑文件内容
<?php namespace Templately\Utils; class Database extends Base { /** * Set transient to options table * * @since 2.0.0 * * @param string $key * @param mixed $value * @param int $expiration * * @return bool */ public static function set_transient( $key, $value, $expiration = DAY_IN_SECONDS ) { $key = '_templately_' . trim( $key ); return set_transient( $key, $value, $expiration ); } /** * Get transient data from options table. * * @since 2.0.0 * @param string $key * * @return mixed */ public static function get_transient( $key ) { $key = '_templately_' . trim( $key ); return get_transient( $key ); } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件