public function parse_args( array $args ) {
		$args = array_merge( $this->default_args, $args );

		// Since a page type has defined post types we should use them.
		// With a fallback on `post_type` args or `any` value.
		if ( $this->type === 'post' ) {
			$args = $this->parse_post_args( $args );
		} else if ( $this->type === 'term' ) {
			$args = $this->parse_term_args( $args );
		}

		$this->args = $args;
	}
public function parse_args( array $args ) {
		$args = array_merge( $this->default_args, $args );

		// Since a page type has defined post types we should use them.
		// With a fallback on `post_type` args or `any` value.
		if ( $this->type === 'post' ) {
			$args = $this->parse_post_args( $args );
		} else if ( $this->type === 'term' ) {
			$args = $this->parse_term_args( $args );
		}

		$this->args = $args;
	}
public function parse_args ( array $ args ) { $ args = array_merge ( $ this -> default_args , $ args ) ; // Since a page type has defined post types we should use them. // With a fallback on `post_type` args or `any` value. if ( $ this -> type === 'post' ) { $ args = $ this -> parse_post_args ( $ args ) ; } else if ( $ this -> type === 'term' ) { $ args = $ this -> parse_term_args ( $ args ) ; } $ this -> args = $ args ; }
Parse query arguments.

@param  array $args
Parse query arguments .