Tribe__Events__Pro__Main::override_listview_get_event_args( array $args, array $posted_data )
If an ajax request has come in with tribe_post_parent, make sure we limit results to by post_parent
Contents
Parameters
- $args
-
(array) (Required) Arguments for fetching events on the listview template
- $posted_data
-
(array) (Required) POST data from listview ajax request
Return
(array)
Source
File: src/Tribe/Main.php
public function override_listview_get_event_args( $args, $posted_data ) { if ( empty( $posted_data['tribe_post_parent'] ) ) { return $args; } $args['post_parent'] = absint( $posted_data['tribe_post_parent'] ); return $args; }//end override_listview_get_event_args