Home › Forums › Front End PM PRO › Hook to use before messages load › Reply To: Hook to use before messages load
February 20, 2018 at 2:07 pm
#11300
Alex Brearley
Participant
Thanks – I also added
$args = array(
‘post_parent’ => $ref->mes_id,
‘post_type’ => ‘any’,
‘numberposts’ => – 1,
‘post_status’ => ‘any’
);
$children = get_children($args);
foreach ($children as $child) {
array_push($not_post, $child);
}
As it worked for the parent message but all the children were still shown.