Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: is_post_embeddable

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
2543
2544      /**
2545       * Filter whether a post is embeddable.
2546       *
2547       * @since 6.8.0
2548       *
2549       * @param bool    $is_embeddable Whether the post is embeddable.
2550       * @param WP_Post $post          Post object.
2551       */
2552      return apply_filters( 'is_post_embeddable', $is_embeddable, $post );
2553 }
2554
2555 /**
2556  * Retrieves an array of the latest posts, or posts matching the given criteria.
2557  *
2558  * For more information on the accepted arguments, see the
2559  * {@link https://developer.wordpress.org/reference/classes/wp_query/
2560  * WP_Query} documentation in the Developer Handbook.
2561  *