wp_get_original_image_path WordPress Filter Hook

The wp_get_original_image_path Wordpress hook allows you to get the original image path for a given image. This can be useful if you need to access the original image for a particular purpose, such as creating a custom size or cropping the image.

apply_filters( 'wp_get_original_image_path', string $original_image, int $attachment_id ) #

Filters the path to the original image.


Parameters

$original_image

(string)Path to original image file.

$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