src/Post.php
protected function set_post( $post ) {
		$this->post = $post;
		$this->id   = ( isset( $post->ID ) ) ? $post->ID : false;

		if ( ! empty( $this->taxonomies() ) ) {
			foreach ( $this->taxonomies() as $taxonomy ) {
				$this->{$taxonomy} = $this->get_terms( $taxonomy, array( 'fields' => 'all' ) );
			}
		}
	}
protected function set_post( $post ) {
		$this->post = $post;
		$this->id   = ( isset( $post->ID ) ) ? $post->ID : false;

		if ( ! empty( $this->taxonomies() ) ) {
			foreach ( $this->taxonomies() as $taxonomy ) {
				$this->{$taxonomy} = $this->get_terms( $taxonomy, array( 'fields' => 'all' ) );
			}
		}
	}
protected function set_post ( $ post ) { $ this -> post = $ post ; $ this -> id = ( isset ( $ post -> ID ) ) ? $ post -> ID : false ; if ( ! empty ( $ this -> taxonomies ( ) ) ) { foreach ( $ this -> taxonomies ( ) as $ taxonomy ) { $ this -> { $ taxonomy } = $ this -> get_terms ( $ taxonomy , array ( 'fields' => 'all' ) ) ; } } }
Sets Post Data.

@param $post
Sets Post Data .