运维日志
-
WordPress根据页面标题获取页面对象函数:get_page_by_title
WordPress函数get_page_by_title根据页面标题获取页面对象,如果有相同名称标题的页面,则返回最早发布的页面。 get_page_by_title( strin…
-
Ubuntu安装WebApps实现微信伪本地应用
在Ubuntu下我一直使用网页版的微信,在浏览器上占据一个标签位置始终感觉是个累赘,Linux Mint集成了一个软件:WebApps,可以将类似微信网页版这样的应用变为伪本地应用…
-
WordPress获取子页面对象函数:get_page_children
WordPress函数get_page_children用于获取子页面对象 get_page_children( int $page_id, array $pages ) 函数参数…
-
WordPress检查自定义文章类型编辑区功能是否支持:post_type_supports
WordPress函数post_type_supports用于检查自定义文章类型编辑区功能是否支持。 post_type_supports( string $post_type, …
-
WordPress根据文章ID设置文章类型函数:set_post_type
WordPress函数set_post_type为指定ID的文章设置文章类型。 set_post_type( int $post_id, string $post_type = &…
-
WordPress检查文章类型是否存在:post_type_exists
WordPress函数post_type_exists检查文章类型是否存在,如果已存在则返回true。通常在使用函数register_post_type()注册文章类型前应该先使用…
-
WordPress根据文章ID获取文章类型函数:get_post_type
WordPress函数get_post_type获取当前文章或指定文章的文章类型,在The Loop主循环中使用则不需要传递文章ID。 get_post_type( int|WP_…
-
WordPress获取所有文章类型函数:get_post_types
WordPress函数get_post_types用于获取所有文章类型信息。 get_post_types( array|string $args = array(), strin…
-
WordPress获取指定文章类型的文章列表链接:get_post_type_archive_link
WordPress函数get_post_type_archive_link用于获取指定文章类型的文章列表链接。 get_post_type_archive_link( string…
-
WordPress获取文章类型对象函数:get_post_type_object
WordPress函数get_post_type_object根据文章类型名称获取文章类型数据,返回的结果参考get_post_types()函数$output值为objects时…