
WordPress插入文章函数:wp_insert_post
WordPress函数wp_insert_post用于插入一篇新的文章。
wp_insert_post( array $postarr, b···

WordPress更新文章函数:wp_update_post
WordPress函数wp_update_post用于更新现有的文章
wp_update_post( array|object $postarr···

WordPress修改文章状态为公开:wp_publish_post
WordPress函数wp_publish_post用于修改文章的状态为publish
wp_publish_post( int|WP_Pos···

WordPress获取所有页面ID函数:get_all_page_ids
WordPress函数get_all_page_ids用于获取所有页面的ID,以数组的形式返回结果,该函数没有···


WordPress获取页面链接函数:get_page_link
WordPress函数get_page_link用于获取指定页面的链接
get_page_link( int|WP_Post $post =···

WordPress根据页面路径获取页面对象函数:get_page_by_path
WordPress函数get_page_by_path根据页面路径获取页面对象
get_page_by_path( string $pag···

WordPress根据页面标题获取页面对象函数:get_page_by_title
WordPress函数get_page_by_title根据页面标题获取页面对象,如果有相同名称标题的页面,···

WordPress获取子页面对象函数:get_page_children
WordPress函数get_page_children用于获取子页面对象
get_page_children( int $page_id, a···

WordPress获取页面ID、名称列表函数:get_page_hierarchy
WordPress函数get_page_hierarchy以页面ID为键,名称为值返回页面列表数组。
get_page_hi···

WordPress获取页面路径函数:get_page_uri
WordPress函数get_page_uri获取页面的路径,不包含域名部份。
get_page_uri( WP_Post|obj···

WordPress获取所有页面信息函数:get_pages
WordPress函数get_pages以对象类型返回所有页面信息。
get_pages( array|string $args = ···