文件操作 - Importer.php
返回文件管理
返回主菜单
删除本文件
文件: /var/www/ltlcompare.com/wp-content/plugins/all-in-one-seo-pack/app/Common/ImportExport/Importer.php
编辑文件内容
<?php namespace AIOSEO\Plugin\Common\ImportExport; // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Imports the settings and meta data from other plugins. * * @since 4.0.0 */ abstract class Importer { /** * Imports the settings. * * @since 4.2.7 * * @return void */ protected function importSettings() {} /** * Imports the post meta. * * @since 4.2.7 * * @return void */ protected function importPostMeta() {} /** * Imports the term meta. * * @since 4.2.7 * * @return void */ protected function importTermMeta() {} /** * PostMeta class instance. * * @since 4.2.7 * * @var Object */ protected $postMeta = null; /** * TermMeta class instance. * * @since 4.2.7 * * @var Object */ protected $termMeta = null; /** * Helpers class instance. * * @since 4.2.7 * * @var Object */ public $helpers = null; /** * Starts the import. * * @since 4.0.0 * * @param array $options What the user wants to import. * @return void */ public function doImport( $options = [] ) { if ( empty( $options ) ) { $this->importSettings(); $this->importPostMeta(); $this->importTermMeta(); return; } foreach ( $options as $optionName ) { switch ( $optionName ) { case 'settings': $this->importSettings(); break; case 'postMeta': $this->postMeta->scheduleImport(); break; default: break; } } } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件