-
Notifications
You must be signed in to change notification settings - Fork 83
pre_activitypub_get_upload_baseurl
github-actions[bot] edited this page Oct 21, 2025
·
24 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_dirThe upload base URL or false if not set.
apply_filters( 'pre_activitypub_get_upload_baseurl', false )Follow @activitypub.blog@activitypub.blog for updates and news.