文件操作 - Shortcode.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/all-in-one-seo-pack/app/Common/Sitemap/Html/Shortcode.php
编辑文件内容
<?php namespace AIOSEO\Plugin\Common\Sitemap\Html; // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Handles the HTML sitemap shortcode. * * @since 4.1.3 */ class Shortcode { /** * Class constructor. * * @since 4.1.3 */ public function __construct() { add_shortcode( 'aioseo_html_sitemap', [ $this, 'render' ] ); } /** * Shortcode callback. * * @since 4.1.3 * * @param array $attributes The shortcode attributes. * @return string|void The HTML sitemap. */ public function render( $attributes ) { $attributes = aioseo()->htmlSitemap->frontend->getAttributes( $attributes ); return aioseo()->htmlSitemap->frontend->output( false, $attributes ); } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件