-
Notifications
You must be signed in to change notification settings - Fork 80
pre_activitypub_get_upload_baseurl
github-actions[bot] edited this page Sep 10, 2025
·
14 revisions
Early filter to allow plugins to set the upload base URL.
/**
* Early filter to allow plugins to set the upload base URL.
*
* @param string|false $maybe_upload_dir
* @return string|false The filtered value.
*/
function my_pre_activitypub_get_upload_baseurl_callback( string|false $maybe_upload_dir ) {
// Your code here.
return $maybe_upload_dir;
}
add_filter( 'pre_activitypub_get_upload_baseurl', 'my_pre_activitypub_get_upload_baseurl_callback' );
-
string|false
$maybe_upload_dir
The upload base URL or false if not set.
apply_filters( 'pre_activitypub_get_upload_baseurl', false )
Follow @[email protected] for updates and news.