常用函数-wp_publish_post() 常用函数-wp_publish_post() 常用函数-wp_publish_post() 说明 通过更改文章状态来发表文章。 用法 <?php wp... 最后更新 2022.03.26
常用函数-get_page_children() 常用函数-get_page_children() 常用函数-get_page_children() 说明 在编号相匹配的页面列表中检索子页面。 要与页面编号上的... 最后更新 2022.03.26
常用函数-get_page_hierarchy() 常用函数-get_page_hierarchy() 常用函数-get_page_hierarchy() 说明 get_page_hierarchy( )函数返回一... 最后更新 2022.03.26
常用函数-get_pages() 常用函数-get_pages() 常用函数-get_pages() 说明 get_pages( )函数用于获取博客中已定义页面的列表。下面是它的... 最后更新 2022.03.26
常用函数-get_page_uri() 常用函数-get_page_uri() 常用函数-get_page_uri() 说明 为页面创建URI 子页面将表现在父页面发表名称的“目录”中。 用... 最后更新 2022.03.26
常用函数-page_uri_index() 常用函数-page_uri_index() 常用函数-page_uri_index() 说明 为页面URI检索所有页面与附件。 检索以页面为父级的文章的附... 最后更新 2022.03.26
常用函数-update_post_meta() 常用函数-update_post_meta() 常用函数-update_post_meta() 说明 该函数为指定文章更新已有meta关键字(自定义)的值。 ... 最后更新 2022.03.26
常用函数-add_post_meta() 常用函数-add_post_meta() 常用函数-add_post_meta() 说明 add_post_meta为指定文章添加自定义(meta)字段... 最后更新 2022.03.26
常用函数-get_post_custom() 常用函数-get_post_custom() 常用函数-get_post_custom() 说明 返回一个多维数组,数组中含有特定文章或页面的所有自定义字段... 最后更新 2022.03.26
常用函数-delete_post_meta() 常用函数-delete_post_meta() 常用函数-delete_post_meta() 说明 该函数从指定文章中删除含有指定关键字的所有自定义字段。参... 最后更新 2022.03.26
常用函数-get_post_meta() 常用函数-get_post_meta() 常用函数-get_post_meta() 说明 该函数返回指定文章中含有指定关键字自定义字段的值。参见 upd... 最后更新 2022.03.26
常用函数-get_post_custom_values() 常用函数-get_post_custom_values() 常用函数-get_post_custom_values() 说明 该函数可用于获取非独有的自定义字段,比如含有... 最后更新 2022.03.26
常用函数-get_post_custom_keys() 常用函数-get_post_custom_keys() 常用函数-get_post_custom_keys() 说明 返回一个数组,数组中含有特定文章或页面的所有自定... 最后更新 2022.03.26
常用函数-wp_insert_attachment() 常用函数-wp_insert_attachment() 常用函数-wp_insert_attachment() 说明 该函数在媒体库中插入一个附件。函数与wp_upd... 最后更新 2022.03.26
常用函数-update_attached_file() 常用函数-update_attached_file() 常用函数-update_attached_file() 说明 按附件编号更新附件文件的路径。 用于更新附件的文... 最后更新 2022.03.26
常用函数-wp_get_attachment_image_src() 常用函数-wp_get_attachment_image_src() 常用函数-wp_get_attachment_image_src() 说明 存在图片时,返回代表附件文件的HT... 最后更新 2022.03.26
常用函数-wp_get_attachment_image() 常用函数-wp_get_attachment_image() 常用函数-wp_get_attachment_image() 说明 存在图片时,返回代表附件文件的HTML图片... 最后更新 2022.03.26
常用函数-wp_get_attachment_metadata() 常用函数-wp_get_attachment_metadata() 常用函数-wp_get_attachment_metadata() 说明 检索附件meta的附件编号。 用法 ... 最后更新 2022.03.26
常用函数-wp_attachment_is_image() 常用函数-wp_attachment_is_image() 常用函数-wp_attachment_is_image() 说明 该函数判断文章是否为图片 用法 <?p... 最后更新 2022.03.26
常用函数-wp_get_attachment_thumb_file() 常用函数-wp_get_attachment_thumb_file() 常用函数-wp_get_attachment_thumb_file() 说明 返回附件的缩略图 用法 <... 最后更新 2022.03.26