It was brought to our attention that MasterPress would give a tonne of warnings and deprecation notices when used with PHP 7.4 – this update addresses those.
Retrieves the immediate child objects of this post.
This method uses get_posts to retrieve the children, and you can further clarify this query with the args parameter (the parent parameter will be enforced to actually retrieve the children).
Arguments $args = array()
An arguments array or string further clarifying the query used to retrieve the children, with defaults:
- orderby => “name”
- order => “asc”
- post_parent => The id of this post (enforced, cannot be changed)