代码拉取完成,页面将自动刷新
<?php
/**
* @package me.joshua.baehelper
*/
/*
Plugin Name: BAE Helper
Plugin URI: http://http://home4j.duapp.com/
Description: A helper plugin that simplify the configuration of WordPress that deploy on BAE(Baidu App Engine).
Version: 1.0.0
Author: Joshua Zhan
Author URI: http://http://home4j.duapp.com/
License: GPLv3 or later
*/
/**
* Include the option page of BAE-Helper plugin.
*/
require_once 'bae-helper-core.php';
require_once 'bae-helper-options.php';
$settings = bae_helper_bcms_get_options();
if (1 == $settings['page-custom-head-enable']) {
add_action('wp_head', 'bae_helper_custom_head');
}
if (1 == $settings['page-custom-footer-enable']) {
add_action('wp_footer', 'bae_helper_custom_footer');
}
if (1 == $settings['gavatar-proxy-enable']) {
add_filter('get_avatar', 'bae_helper_gravatar_proxy', 10, 3);
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。