WordPress检查文章类型是否存在:post_type_exists

WordPress函数post_type_exists检查文章类型是否存在,如果已存在则返回true。通常在使用函数register_post_type()注册文章类型前应该先使用 …

WordPress根据文章ID设置文章类型函数:set_post_type

WordPress函数set_post_type为指定ID的文章设置文章类型。 set_post_type( int $post_id, string $post_type = 'post' ) 函数参数$post_id 整数 要修改的文章ID $post_type 字符串 文章类型 函数使用示例$post_i …

WordPress检查自定义文章类型编辑区功能是否支持:post_type_supports

WordPress函数post_type_supports用于检查自定义文章类型编辑区功能是否支持。 post_type_supports( string $post_type, string $feature ) 函数参数$post_type 字符串 自定义文章类型 $feature 字符串或数组 要检查 …

WordPress自定义文章类型删除编辑区功能函数:remove_post_type_support

WordPress函数remove_post_type_support用于删除自定义文章类型编辑区功能。 remove_post_type_support( string $post_type, string $feature ) 函数参数$post_type 字符串 自定义文章类型 $feature 字符串或数组 需 …

WordPress自定义文章类型添加编辑区功能函数:add_post_type_support

WordPress函数add_post_type_support用于为自定义文章类型编辑区添加功能。 add_post_type_support( string $post_type, string|array $feature, mixed $args ) 函数参数$post_type 字符串 自定义文章类型 $feature 字符串或数组 需 …

WordPress自定义文章类型归档页标题函数:post_type_archive_title

WordPress函数post_type_archive_title用于在自定义文章类型归档页输出标题,通常在archive-{$post_type}.php模板中使用。 post_type_archive_title( string $prefix = '', …

WordPress判断是否指定文章类型归档页函数:is_post_type_archive

WordPress函数is_post_type_archive用于判断是否指定的文章类型归档页。 is_post_type_archive( string|string[] $post_types = '' ) 函数参数$post_types 字符串 指定文章类型 函数使用示例<?p …

WordPress注册文章类型函数:register_post_type

WordPress函数register_post_type用于注册新的文章类型,不应该在init动作前挂载,所有分类法都通过$taxonomies参数注册,以确保在使用诸如“par …

我正在使用的一些免费可商用字体

我正在使用的一些免费可商用字体

近几年无论图片版权还是字体版权都越来越重视,一款商用字体的价格大概好几千一年,对于公司来说这笔开支可能不算什么,毕竟设计一款字体也需要付出巨大的成本,但对于个人或个体户来说,偶尔做 …

网易公开课免费送纸质书,0元包邮!

之前参与微信读书的免费送纸质书活动,获得了两本爱书,昨天又发现网易公开课免费送书活动。 扫码关注网易公开课公众号,发送消息“福利”,根据提示操作即可免费获得图中书籍的一本。 参与条件: …