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.
Source
File: wp-includes/post.php
Changelog
Version | Description |
---|---|
5.3.0 | Introduced. |