public function init() {

		$defaults = array(
			'add_label' => __( 'Add Related Post', 'uix' ),
			'config'    => array(
				'limit' => 1,
			),
			'query'     => array(
				'post_type'     => 'any',
				'post_per_page' => 5,
			),
		);

		$this->struct = array_merge( $defaults, $this->struct );

		$data = uix()->request_vars( 'post' );

		if ( ! empty( $data['uixId'] ) && $data['uixId'] === $this->id() ) {
			$this->do_lookup( $data );
		}

	}
public function init() {

		$defaults = array(
			'add_label' => __( 'Add Related Post', 'uix' ),
			'config'    => array(
				'limit' => 1,
			),
			'query'     => array(
				'post_type'     => 'any',
				'post_per_page' => 5,
			),
		);

		$this->struct = array_merge( $defaults, $this->struct );

		$data = uix()->request_vars( 'post' );

		if ( ! empty( $data['uixId'] ) && $data['uixId'] === $this->id() ) {
			$this->do_lookup( $data );
		}

	}
public function init ( ) { $ defaults = array ( 'add_label' => __ ( 'Add Related Post' , 'uix' ) , 'config' => array ( 'limit' => 1 , ) , 'query' => array ( 'post_type' => 'any' , 'post_per_page' => 5 , ) , ) ; $ this -> struct = array_merge ( $ defaults , $ this -> struct ) ; $ data = uix ( ) -> request_vars ( 'post' ) ; if ( ! empty ( $ data [ 'uixId' ] ) && $ data [ 'uixId' ] === $ this -> id ( ) ) { $ this -> do_lookup ( $ data ) ; } }
Catch the ajax search and push results

@since 1.0.0
@access public
Catch the ajax search and push results