_wp_relative_upload_path WordPress Filter Hook

The wp_relative_upload_path hook allows you to change the default upload path for Wordpress. This can be useful if you want to store your files in a different location or if you want to change the structure of the default upload path.

apply_filters( '_wp_relative_upload_path', string $new_path, string $path ) #

Filters the relative path to an uploaded file.


Parameters

$new_path

(string)Relative path to the file.

$path

(string)Full path to the file.


Top ↑

Source

File: wp-includes/post.php

View on Trac



Top ↑

Changelog

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