常用函数-get_attached_file()2009-03-28 常用函数-get_attached_file() 说明 按附件编号检索附件文件的路径。 也可以选择性地通过'get_attached_file'过滤器发送路径,但默认情况下只返回未过滤的文件路径...
常用函数-update_attached_file()2009-03-28 常用函数-update_attached_file() 说明 按附件编号更新附件文件的路径。 用于更新附件的文件路径,用文章meta名'_wp_attached_file'存储附件路径 ...
常用函数-is_local_attachment()2009-03-28 常用函数-is_local_attachment() 说明 检查附件URI是否本地URI以及是否确实是附件类型 用法 <?php is_local_attachment( $u...
常用函数-wp_insert_attachment()2009-03-28 常用函数-wp_insert_attachment() 说明 该函数在媒体库中插入一个附件。函数与wp_update_attachment_metadata() 和 wp_generate_attachment_met...
常用函数-get_post_custom_keys()2009-03-27 常用函数-get_post_custom_keys() 说明 返回一个数组,数组中含有特定文章或页面的所有自定义字段的关键字。参见 get_post_custom() 和get_post_custom_values()...
常用函数-get_post_custom_values()2009-03-27 常用函数-get_post_custom_values() 说明 该函数可用于获取非独有的自定义字段,比如含有至少两个值的字段。其他情况下可以使用 get_post_meta()。 返回一个数组,数组中包含带有...
常用函数-get_post_meta()2009-03-27 常用函数-get_post_meta() 说明 该函数返回指定文章中含有指定关键字自定义字段的值。参见 update_post_meta(), delete_post_meta() 和 add_post_meta() ...
常用函数-get_post_custom()2009-03-27 常用函数-get_post_custom() 说明 返回一个多维数组,数组中含有特定文章或页面的所有自定义字段。参见 get_post_custom_keys() and get_post_custom_values(...
常用函数-delete_post_meta()2009-03-26 常用函数-delete_post_meta() 说明 该函数从指定文章中删除含有指定关键字的所有自定义字段。参见 update_post_meta(), get_post_meta() 和add_post_meta()...
常用函数-add_post_meta()2009-03-26 常用函数-add_post_meta() 说明 add_post_meta为指定文章添加自定义(meta)字段。 若$unique参数设为true且已指定meta关键字,函数返回false,不作更改;否则返回t...