post_embed_url WordPress Filter Hook

The post_embed_url Wordpress hook allows you to modify the URL that is used for embedding a post. This can be useful if you want to change the URL of the post that is being embedded.

apply_filters( 'post_embed_url', string $embed_url, WP_Post $post ) #

Filters the URL to embed a specific post.


Parameters

$embed_url

(string)The post embed URL.

$post

(WP_Post)The corresponding post object.


Top ↑

Source

File: wp-includes/embed.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.