wordpress
tyasdxx
这个作者很懒,什么都没留下…
展开
-
wordpress 自定义post_type、分类、标签
function my_custom_post_item() { $labels = array( 'name' => _x( '商品', 'post type 名称' ), 'singular_name' => _x( '商品', 'post type 单个 item 时的名称,因为英文有复数' ), 'add_new' => _x( '新建商品', '添加新内容的链接名称' ), 'ad..原创 2020-12-14 17:15:28 · 978 阅读 · 0 评论 -
Wordpress常用设置代码
主题文件夹中functions.php文件//移除 WordPress 文章标题前的“私密/密码保护”提示文字function remove_title_prefix($content) { return '%s';//这个不能省略}add_filter('private_title_format', 'remove_title_prefix');//私密add_filter(...原创 2019-08-08 18:11:43 · 653 阅读 · 0 评论