_wp_get_attachment_relative_path

Private AccessPrivate Access

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

SummerySummery

Get the attachment path relative to the upload directory.

Syntax

_wp_get_attachment_relative_path( string $file )

ParametersParameters

$file

(string) (Required) Attachment file name.

ReturnReturn

(string) Attachment path relative to the upload directory.

SourceSource

File: wp-includes/media.php


			

ChangelogChangelog

Changelog
Version Description
4.4.1 Introduced.
Scroll to Top