本文整理汇总了PHP中EM_Object::get_post_search方法的典型用法代码示例。如果您正苦于以下问题:PHP EM_Object::get_post_search方法的具体用法?PHP EM_Object::get_post_search怎么用?PHP EM_Object::get_post_search使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EM_Object
的用法示例。
在下文中一共展示了EM_Object::get_post_search方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_post_search
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));
}
示例2: get_post_search
public static function get_post_search($args = array(), $filter = false)
{
return apply_filters('em_events_get_post_search', parent::get_post_search($args, $filter));
}
示例3: get_post_search
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);
}
示例4: get_post_search
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);
}