src/two/magictag.php
public function filter_post( $in_params ){

		// check if there is a third
		$params = explode( ':', $in_params );

		if( isset( $params[1] ) ){
			// a third e.g {post:24:post_title} indicates post ID 24 value post_title
			$post = get_post( $params[0] );
			$field = $params[1];

		}else{
			// stic to current post
			global $post;
			$field = $params[0];

		}

		// try object
		return $this->get_post_value( $field, $in_params, $post );

	}
public function filter_post( $in_params ){

		// check if there is a third
		$params = explode( ':', $in_params );

		if( isset( $params[1] ) ){
			// a third e.g {post:24:post_title} indicates post ID 24 value post_title
			$post = get_post( $params[0] );
			$field = $params[1];

		}else{
			// stic to current post
			global $post;
			$field = $params[0];

		}

		// try object
		return $this->get_post_value( $field, $in_params, $post );

	}
public function filter_post ( $ in_params ) { // check if there is a third $ params = explode ( ':' , $ in_params ) ; if ( isset ( $ params [ 1 ] ) ) { // a third e.g {post:24:post_title} indicates post ID 24 value post_title $ post = get_post ( $ params [ 0 ] ) ; $ field = $ params [ 1 ] ; } else { // stic to current post global $ post ; $ field = $ params [ 0 ] ; } // try object return $ this -> get_post_value ( $ field , $ in_params , $ post ) ; }
Filters a post magic tag

@since 0.0.1

@return    string 	converted tag value
Filters a post magic tag