public function build_args( $data ) {
		$defaults = array(
			'post_type'      => 'post',
			'posts_per_page' => 10,
			'paged'          => 1,
		);
		if ( ! empty( $data['_value'] ) ) {
			$defaults['s'] = $data['_value'];
		}

		$args = array_merge( $defaults, $this->struct['query'] );

		if ( ! empty( $data['page'] ) ) {
			$args['paged'] = (int) $data['page'];
		}
		if ( ! empty( $data['selected'] ) ) {
			$args['post__not_in'] = explode( ',', $data['selected'] );
		}

		return $args;
	}
public function build_args( $data ) {
		$defaults = array(
			'post_type'      => 'post',
			'posts_per_page' => 10,
			'paged'          => 1,
		);
		if ( ! empty( $data['_value'] ) ) {
			$defaults['s'] = $data['_value'];
		}

		$args = array_merge( $defaults, $this->struct['query'] );

		if ( ! empty( $data['page'] ) ) {
			$args['paged'] = (int) $data['page'];
		}
		if ( ! empty( $data['selected'] ) ) {
			$args['post__not_in'] = explode( ',', $data['selected'] );
		}

		return $args;
	}
public function build_args ( $ data ) { $ defaults = array ( 'post_type' => 'post' , 'posts_per_page' => 10 , 'paged' => 1 , ) ; if ( ! empty ( $ data [ '_value' ] ) ) { $ defaults [ 's' ] = $ data [ '_value' ] ; } $ args = array_merge ( $ defaults , $ this -> struct [ 'query' ] ) ; if ( ! empty ( $ data [ 'page' ] ) ) { $ args [ 'paged' ] = ( int ) $ data [ 'page' ] ; } if ( ! empty ( $ data [ 'selected' ] ) ) { $ args [ 'post__not_in' ] = explode ( ',' , $ data [ 'selected' ] ) ; } return $ args ; }
Builds the query args for the post lookup

@since  1.0.0
@access public
@return array Args for the query
Builds the query args for the post lookup