1 Star 0 Fork 0

joshuazhan/bae-helper

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
bae-helper.php 842 Bytes
一键复制 编辑 原始数据 按行查看 历史
joshuazhan 提交于 2013-08-12 23:01 . Update to v0.2
<?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);
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/joshuazhan/bae-helper.git
git@gitee.com:joshuazhan/bae-helper.git
joshuazhan
bae-helper
bae-helper
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385