文件操作 - functionsbak.php
返回文件管理
返回主菜单
删除本文件
文件: /var/www/vec.uaysen.cl/html/wp-content/themes/E17/functionsbak.php
编辑文件内容
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' ); /** * Theme functions and definitions */ if ( ! defined( 'US_ACTIVATION_THEMENAME' ) ) { define( 'US_ACTIVATION_THEMENAME', 'Zephyr' ); } global $us_theme_supports; $us_theme_supports = array( 'plugins' => array( 'contact-form-7' => NULL, 'filebird' => 'plugins-support/filebird.php', 'js_composer' => 'plugins-support/js_composer/js_composer.php', 'post_views_counter' => 'plugins-support/post_views_counter.php', 'revslider' => 'plugins-support/revslider.php', 'tablepress' => 'plugins-support/tablepress.php', 'the-events-calendar' => 'plugins-support/the_events_calendar.php', 'tiny_mce' => 'plugins-support/tiny_mce.php', 'Ultimate_VC_Addons' => 'plugins-support/Ultimate_VC_Addons.php', 'woocommerce' => 'plugins-support/woocommerce.php', ), // Include plugins that relate to translations and can be used in helpers.php 'translate_plugins' => array( 'wpml' => 'plugins-support/wpml.php', 'polylang' => 'plugins-support/polylang.php', ), ); require dirname( __FILE__ ) . '/common/framework.php'; function disable_plugin_updates( $value ) { unset( $value->response['wp-file-download/wp-file-download.php'] ); unset( $value->response['us-core/us-core.php'] ); unset( $value->response['revslider/revslider.php'] ); return $value; } add_filter( 'site_transient_update_plugins', 'disable_plugin_updates' ); add_action( 'init', 'remove_admin_bar_user', 10001 ); function remove_admin_bar_user() { if ( current_user_can( 'administrator' ) || is_admin() ) { show_admin_bar( true ); } else { show_admin_bar( false ); } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件