摘要: 原文:https://codex.wordpress.org/Plugin_API/Filter_Reference/root_rewrite_rules 实例, function my_htaccess_contents( $rules ) { var_dump($rules); exit(); 阅读全文
posted @ 2017-10-31 14:45 kais7mg 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Editing and Customizing htaccess Indirectly 间接地编辑和定制htaccess If you are wanting to know how to add your own custom content/rewrite rules to your WordP 阅读全文
posted @ 2017-10-31 10:38 kais7mg 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 首先这里是我电脑上打印出来的 Rewrite 实例。有部分规则是我安装的插件生成的。 在插件中添加下面代码 1 add_action('get_footer',"temp_output"); 2 function temp_output(){ 3 global $wp_rewrite; 4 $tem 阅读全文
posted @ 2017-10-26 14:11 kais7mg 阅读(457) 评论(0) 推荐(0) 编辑
摘要: Rewrite API(重写规则API) Description(描述) WordPress allows theme and plugin developers to programmatically specify new, custom rewrite rules. The following 阅读全文
posted @ 2017-10-26 10:13 kais7mg 阅读(1081) 评论(0) 推荐(0) 编辑
摘要: Must Use Plugins (必须使用的插件) Must-use plugins (a.k.a. mu-plugins) are plugins installed in a special directory inside the content folder and which are a 阅读全文
posted @ 2017-10-23 16:17 kais7mg 阅读(491) 评论(0) 推荐(0) 编辑
摘要: 自定义覆盖物的点击事件 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <title>自定义覆盖物的点击事件</title> 6 <script type="text/javascript" src="http://api.map.baidu.com/api?v=1.2" 阅读全文
posted @ 2012-12-27 10:32 kais7mg 阅读(973) 评论(0) 推荐(0) 编辑
摘要: 第一步,双击安装wamp,这就不用我赘述了哈,装好之后默认是英文界面,如果想看中文,右击桌面右下角wamp图标 “language” “Chinese”。第二步,刚安装好的wamp图标是半边红色半边白色,说明此时服务未开启;点击wamp图标 “打开所有服务”,正常情况下图标就会变成全白色,说明服务开 阅读全文
posted @ 2012-12-03 10:32 kais7mg 阅读(763) 评论(0) 推荐(0) 编辑
摘要: 网站系统需要修改的位置有两处 Discuz 和 UC-center ①路径:/wwwroot/config/config_global.php 这个根据你网站安装的路径而定。 打开 config_global.php 文件修改:$_config['db']['1']['dbpw'] = '原来密码'; 原来密码 修改为新的数据库密码。 ②路径:/wwwroot/uc_server/data/config.inc.php 打开 config.inc.php 文件修改:define('UC_DBPW', '原来 阅读全文
posted @ 2012-11-26 10:10 kais7mg 阅读(169) 评论(0) 推荐(0) 编辑