wp_get_original_image_url WordPress Filter Hook

The wp_get_original_image_url hook is used to get the original image URL of a post or page. This hook can be used in conjunction with the_post_thumbnail() or get_the_post_thumbnail() functions to get the original image URL of a post or page.

apply_filters( 'wp_get_original_image_url', string $original_image_url, int $attachment_id ) #

Filters the URL to the original attachment image.


Parameters

$original_image_url

(string)URL to original image.

$attachment_id

(int)Attachment ID.


Top ↑

Source

File: wp-includes/post.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.3.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.

Show More
Show More