WordPress获取附件MIME类型函数:get_post_mime_type WordPress函数get_post_mime_type主要用于获取附件的MIME类型,当然也能返回文章、页面的MIME类型,但在实际应用中这并没有什么用处。get_post_mime_type( … 2022-02-21 WordPress函数 87 0人评论
WordPress获取文章状态函数:get_post_status WordPress函数get_post_status用于获取文章的状态,比较少用到。get_post_status( int $ID )函数参数$ID整数型,默认为空文章的ID函数返回值publish… 2022-02-21 WordPress函数 67 0人评论
WordPress获取文章数据函数:get_post WordPress函数get_post用于获取文章的数据,包括文章内容、标题、别名、摘要、发布时间等信息。 get_post( int $post = null, string $output = O… 2022-02-21 WordPress函数 47 0人评论
WordPress获取文章子元素函数:get_children WordPress函数get_children可用于获取文章下的附件、子页面等。 get_children( array $args = \'\', constant $output = OBJECT… 2022-02-21 WordPress函数 50 0人评论