更改wordpress默认首页路径
更改wordpress默认首页路径
日期:2016-04-02 00:51:38 人气:1
如果是更改皮肤的首页地址,可以通过hooks实施,具体可查看wp-includes/template.php第29行:
return apply_filters( "{$type}_template", locate_template( $templates ) );根据这个hooks,添加相关函数
add_filter('index_template', 'custom_index_template');function custom_inde