protected function getSidebarPostId() {
		$post_id = intval( get_the_ID() );

		if ( $this->isBlog() ) {
			$post_id = intval( get_option( 'page_for_posts' ) );
		}

		$post_id = intval( apply_filters( 'app_sidebar_context_post_id', $post_id ) );

		return $post_id;
	}
protected function getSidebarPostId() {
		$post_id = intval( get_the_ID() );

		if ( $this->isBlog() ) {
			$post_id = intval( get_option( 'page_for_posts' ) );
		}

		$post_id = intval( apply_filters( 'app_sidebar_context_post_id', $post_id ) );

		return $post_id;
	}
protected function getSidebarPostId ( ) { $ post_id = intval ( get_the_ID ( ) ) ; if ( $ this -> isBlog ( ) ) { $ post_id = intval ( get_option ( 'page_for_posts' ) ) ; } $ post_id = intval ( apply_filters ( 'app_sidebar_context_post_id' , $ post_id ) ) ; return $ post_id ; }
Get the post id that should be checked for a custom sidebar for the current request.

@return int
Get the post id that should be checked for a custom sidebar for the current request .