文件操作 - functions.php
返回文件管理
返回主菜单
删除本文件
文件: /storage/v12552/jimbrandstatter/public_html/wp-content/themes/Total/inc/theme-builder/functions.php
编辑文件内容
<?php defined( 'ABSPATH' ) || exit; /** * Do location. */ function wpex_theme_do_location( $location = '' ): bool { return (bool) totaltheme_call_non_static( 'Theme_Builder', 'do_location', $location ); } /** * Get header builder ID */ function wpex_header_builder_id() { if ( class_exists( 'TotalTheme\HeaderBuilder', false ) ) { return TotalTheme\HeaderBuilder::get_template_id(); } } /** * Check if we are currently in header builder edit mode. */ function wpex_is_header_builder_page(): bool { if ( ! empty( $_GET[ 'wpex_inline_header_template_editor' ] ) ) { return true; } $header_builder_id = wpex_header_builder_id(); return $header_builder_id && $header_builder_id == wpex_get_current_post_id(); } /** * Get footer builder ID. */ function wpex_footer_builder_id() { if ( class_exists( 'TotalTheme\FooterBuilder', false ) ) { return TotalTheme\FooterBuilder::get_template_id(); } } /** * Check if we are currently in footer builder edit mode. */ function wpex_is_footer_builder_page(): bool { if ( ! empty( $_GET[ 'wpex_inline_footer_template_editor' ] ) ) { return true; } $footer_builder_id = wpex_footer_builder_id(); return $footer_builder_id && $footer_builder_id == wpex_get_current_post_id(); } /** * Returns post ID when using a dynamic template. */ function wpex_get_dynamic_post_id() { $post_id = wpex_get_current_post_id(); /** * Filters the post ID when using dynamic templates. * * @param int $post_id */ $post_id = apply_filters( 'wpex_get_dynamic_post_id', $post_id ); return $post_id; } /** * Checks if a specific location has a defined template. */ function totaltheme_location_has_template( string $location ): bool { $instance = totaltheme_get_instance_of( 'Theme_Builder' ); return $instance && $instance->location_has_template( $location ); }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件