文件操作 - class-hfe-astra-compat.php
返回文件管理
返回主菜单
删除本文件
文件: /root/Desktop/OLD/plugin-wordpress/header-footer-elementor/themes/astra/class-hfe-astra-compat.php
编辑文件内容
<?php /** * HFE_Astra_Compat setup * * @package header-footer-elementor */ /** * Astra theme compatibility. */ class HFE_Astra_Compat { /** * Instance of HFE_Astra_Compat. * * @var HFE_Astra_Compat */ private static $instance; /** * Initiator */ public static function instance() { if ( ! isset( self::$instance ) ) { self::$instance = new HFE_Astra_Compat(); add_action( 'wp', [ self::$instance, 'hooks' ] ); } return self::$instance; } /** * Run all the Actions / Filters. */ public function hooks() { if ( hfe_header_enabled() ) { add_action( 'template_redirect', [ $this, 'astra_setup_header' ], 10 ); add_action( 'astra_header', 'hfe_render_header' ); } if ( hfe_footer_enabled() ) { add_action( 'template_redirect', [ $this, 'astra_setup_footer' ], 10 ); add_action( 'astra_footer', 'hfe_render_footer' ); } if ( hfe_is_before_footer_enabled() ) { add_action( 'astra_footer_before', 'hfe_render_before_footer' ); } } /** * Disable header from the theme. */ public function astra_setup_header() { remove_action( 'astra_header', 'astra_header_markup' ); } /** * Disable footer from the theme. */ public function astra_setup_footer() { remove_action( 'astra_footer', 'astra_footer_markup' ); } } HFE_Astra_Compat::instance();
修改文件时间
将文件时间修改为当前时间的前一年
删除文件