WordPress编码标准 WordPress编码标准 在WordPress中,一些PHP旧代码结构并不一致。WordPress正在通过促使开发人员使用统一的风格结构... 最后更新 2022.03.26
常用函数-get_post() 常用函数-get_post() 常用函数-get_post() 说明 读取文章编号(ID),将文章记录返回数据库。用户可通过$output参数... 最后更新 2022.03.26
常用函数-get_post_status() 常用函数-get_post_status() 常用函数-get_post_status() 说明 按文章ID检索文章状态。 如果文章ID是附件,该函数给出源... 最后更新 2022.03.26
常用函数-get_post_mime_type() 常用函数-get_post_mime_type() 常用函数-get_post_mime_type() 说明 按ID编号检索附件的mime类型。 该函数可用于任何... 最后更新 2022.03.26
常用函数-get_post_type() 常用函数-get_post_type() 常用函数-get_post_type() 说明 检索目前文章或给定文章的文章类型。 用法 <?php g... 最后更新 2022.03.26
常用函数-get_children() 常用函数-get_children() 常用函数-get_children() get_children( )检索附件、版本、子页面等信息,一般情况下... 最后更新 2022.03.26
常用函数-get_extended() 常用函数-get_extended() 常用函数-get_extended() 说明 获取扩展项信息 ( <!–more–> ). 第二个... 最后更新 2022.03.26
常用函数-wp_get_recent_posts() 常用函数-wp_get_recent_posts() 常用函数-wp_get_recent_posts() 说明 按发表时间检索数据库中的$num最新发表文章。默认... 最后更新 2022.03.26
常用函数-wp_get_single_post() 常用函数-wp_get_single_post() 常用函数-wp_get_single_post() 说明 按文章编号检索某篇文章。 用法 <?php w... 最后更新 2022.03.26
常用函数-wp_delete_post() 常用函数-wp_delete_post() 常用函数-wp_delete_post() 说明 根据文章编号删除文章 用法 <?php wp_dele... 最后更新 2022.03.26
常用函数-wp_insert_post() 常用函数-wp_insert_post() 常用函数-wp_insert_post() 说明 该函数可在数据库中插入文章(及页面)。它可以进行处理变量,检... 最后更新 2022.03.26
常用函数-wp_update_post() 常用函数-wp_update_post() 常用函数-wp_update_post() 说明 该函数更新数据库中的文章。如希望函数正常运行,需传递将被更新... 最后更新 2022.03.26
常用函数-get_all_page_ids() 常用函数-get_all_page_ids() 常用函数-get_all_page_ids() 说明 获取页面编号列表。 用法 <?php get_al... 最后更新 2022.03.26