Index: wp-includes/post-functions.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- wp-includes/post-functions.php	(revision 35051)
+++ wp-includes/post-functions.php	(revision )
@@ -425,6 +425,22 @@
  *                            When $output is OBJECT, a `WP_Post` instance is returned.
  */
 function get_post( $post = null, $output = OBJECT, $filter = 'raw' ) {
+
+	/**
+	 * Filter that allows a custom post to be provided when appropriate
+	 *
+	 * @since 4.4.0
+	 *
+	 * @param object|null   null    Value to return if no custom post it to be provided
+	 * @param string        $output Optional, default is Object. Accepts OBJECT, ARRAY_A, or ARRAY_N.
+	 *                              Default OBJECT.
+	 * @param string        $filter Optional. Type of filter to apply. Accepts 'raw', 'edit', 'db',
+	 *                              or 'display'. Default 'raw'.
+	 */
+	if ( $custom_post = apply_filters( 'get_post', null, $output, $filter ) ) {
+		return $custom_post;
+	}
+
 	if ( empty( $post ) && isset( $GLOBALS['post'] ) )
 		$post = $GLOBALS['post'];
 
