文件操作 - base.php
返回文件管理
返回主菜单
删除本文件
文件: /root/Desktop/OLD/plugin-wordpress/metform/core/forms/base.php
编辑文件内容
<?php namespace MetForm\Core\Forms; defined( 'ABSPATH' ) || exit; Class Base extends \MetForm\Base\Common{ use \MetForm\Traits\Singleton; public $form; public $api; public function get_dir(){ return dirname(__FILE__); } public function __construct(){ } public function init(){ $this->form = new Cpt(); $this->api = new Api(); Hooks::instance()->Init(); \MetForm\Base\Shortcode::instance(); add_action('admin_footer', [$this, 'modal_view']); } public function modal_view(){ $screen = get_current_screen(); if($screen->id == 'edit-metform-form' || $screen->id == 'metform_page_mt-form-settings'){ include_once 'views/modal-editor.php'; } } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件