文件操作 - Helpers.php
返回文件管理
返回主菜单
删除本文件
文件: /var/www/ltlcompare.com/wp-content/plugins/all-in-one-seo-pack/app/Lite/Utils/Helpers.php
编辑文件内容
<?php namespace AIOSEO\Plugin\Lite\Utils; // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } use AIOSEO\Plugin\Common\Utils as CommonUtils; use AIOSEO\Plugin\Lite\Traits\Helpers as TraitHelpers; /** * Contains helper functions. * * @since 4.2.4 */ class Helpers extends CommonUtils\Helpers { use TraitHelpers\Vue; /** * Get the headers for internal API requests. * * @since 4.2.4 * * @return array An array of headers. */ public function getApiHeaders() { return [ 'Content-Type' => 'application/json' ]; } /** * Get the User Agent for internal API requests. * * @since 4.2.4 * * @return string The User Agent. */ public function getApiUserAgent() { return 'WordPress/' . get_bloginfo( 'version' ) . '; ' . get_bloginfo( 'url' ) . '; AIOSEO/Lite/' . AIOSEO_VERSION; } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件