2020-05-01 / 4676阅 / 悠然
Retrieves the boundary post.
Boundary being either the first or last post by publish date within the constraints specified by $in_same_term or $excluded_terms.
(bool)
(Optional)
Whether returned post should be in a same taxonomy term.
Default value: false
(array|string)
(Optional)
Array or comma-separated list of excluded term IDs.
Default value: ''
(bool)
(Optional)
Whether to retrieve first or last post. Default true
Default value: true
(string)
(Optional)
Taxonomy, if $in_same_term is true.
Default value: 'category'
(null|array) Array containing the boundary post object if successful, null otherwise.