public static function get_post_search($args = array(), $filter = false, $request = array(), $accepted_args = array()) { //supply $accepted_args to parent argument since we can't depend on late static binding until WP requires PHP 5.3 or later $accepted_args = !empty($accepted_args) ? $accepted_args : array_keys(self::get_default_search()); return apply_filters('em_events_get_post_search', parent::get_post_search($args, $filter, $request, $accepted_args)); }
public static function get_post_search($args = array(), $filter = false) { return apply_filters('em_events_get_post_search', parent::get_post_search($args, $filter)); }
public static function get_post_search($args = array(), $filter = false, $request = array(), $accepted_args = array()) { //supply $accepted_args to parent argument since we can't depend on late static binding until WP requires PHP 5.3 or later $accepted_args = !empty($accepted_args) ? $accepted_args : array_keys(self::get_default_search()); $return = parent::get_post_search($args, $filter, $request, $accepted_args); //remove unwanted arguments or if not explicitly requested if (empty($_REQUEST['scope']) && empty($request['scope']) && !empty($return['scope'])) { unset($return['scope']); } return apply_filters('em_locations_get_post_search', $return); }
public static function get_post_search($args = array(), $filter = false, $request = array()) { $return = parent::get_post_search($args, $filter, $request); //remove unwanted arguments or if not explicitly requested if (empty($_REQUEST['scope']) && empty($request['scope']) && !empty($return['scope'])) { unset($return['scope']); } return apply_filters('em_locations_get_post_search', $return); }