/** * Get the default query args. * * @since 1.0.0 * * @param string $args The query post args. * @see @link http://codex.wordpress.org/Class_Reference/WP_Query * @return array The parsed args. */ public function get_query_args($args = null) { $defaults = array('orderby' => 'post_date', 'order' => 'DESC', 'post_type' => 'attachment', 'post_status' => 'any'); $args = wp_parse_args($args, $defaults); return parent::prepare_query_args($args, 'get_posts'); }
/** * Get the default query args. * * @since 1.0.0 * * @param string $args The query post args. * @return array The parsed args. */ public function get_query_args($args = null) { return parent::prepare_query_args($args, 'get_categories'); }
/** * Get WP_Query object arguments. * * Return default search arguments. * * @since 1.0.0 * * @param $args The query post args * @see @link http://codex.wordpress.org/Function_Reference/get_pages * @return array $args The parsed args. */ public function get_query_args($args = null) { $cpts = MS_Rule_CptGroup_Model::get_custom_post_types(); if (!isset($args['post_type'])) { $args['post_type'] = $cpts; } return parent::prepare_query_args($args, 'get_posts'); }
/** * Get the default query args. * * @since 1.0.0 * * @param string $args The query post args. * @see @link http://codex.wordpress.org/Class_Reference/WP_Query * @return array The parsed args. */ public function get_query_args($args = null) { return parent::prepare_query_args($args, 'wp_query'); }
/** * Get WP_Query object arguments. * * Return default search arguments. * * @since 1.0.0 * * @param $args The query post args * @see @link http://codex.wordpress.org/Class_Reference/WP_Query * @return array $args The parsed args. */ public function get_query_args($args = null) { $defaults = array('posts_per_page' => -1, 'offset' => 0, 'orderby' => 'ID', 'order' => 'DESC', 'post_type' => self::CPT_BB_FORUM, 'post_status' => 'publish'); $args = wp_parse_args($args, $defaults); $args = parent::prepare_query_args($args); return apply_filters('ms_addon_bbpress_model_rule_get_query_args', $args); }