Filter
rpress_get_upload_dir
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#
| Parameter | Type | Description |
|---|---|---|
$path | string | Upload 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), inrpress_get_upload_dir()
Was this page helpful?
