Skip to content
Docs
Get RestroPress

Filter

rpress_get_upload_dir

Updated
On this page

Filters the absolute path of the RestroPress upload directory.

The directory is rpress inside the WordPress uploads directory, created if missing, returned without a trailing slash.

Parameters#

ParameterTypeDescription
$pathstringUpload directory path.

Return value#

string. The path.

Example#

function my_rpress_upload_dir( $path ) {
	return $path;
}
add_filter( 'rpress_get_upload_dir', 'my_rpress_upload_dir' );

Source#

Applied in:

  • includes/rp-core-functions.php (line 2441), in rpress_get_upload_dir()
Was this page helpful?