文件操作 - Helper.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/tutor/includes/droip/backend/Helper.php
编辑文件内容
<?php /** * Preview script for html markup generator * * @package tutor-droip-elements */ namespace TutorLMSDroip; use Droip\Ajax\ExportImport; use TUTOR\Course; if (! defined('ABSPATH')) { exit; // Exit if accessed directly. } /** * Class Helper * This class is used to define all helper functions. */ class Helper { /** * Function to activate droip elements plugin */ public static function t_d_e_activate() {} /** * This function will verify nonce * ACT like API calls auth middleware * * @param string $action ajax action name. * * @return void */ public static function verify_nonce($action = -1) { $nonce = sanitize_text_field(isset($_SERVER['HTTP_X_WP_NONCE']) ? wp_unslash($_SERVER['HTTP_X_WP_NONCE']) : null); if (! wp_verify_nonce($nonce, $action)) { wp_send_json_error('Not authorized'); exit; } } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件