-
Notifications
You must be signed in to change notification settings - Fork 83
activitypub_get_upload_baseurl
github-actions[bot] edited this page Oct 21, 2025
·
24 revisions
Filters the upload base URL.
/**
* Filters the upload base URL.
*
* @param mixed $string_upload_dir_the_upload_base_url_default_wp_get_upload_dir_baseurl
* @return mixed The filtered value.
*/
function my_activitypub_get_upload_baseurl_callback( $string_upload_dir_the_upload_base_url_default_wp_get_upload_dir_baseurl ) {
// Your code here.
return $string_upload_dir_the_upload_base_url_default_wp_get_upload_dir_baseurl;
}
add_filter( 'activitypub_get_upload_baseurl', 'my_activitypub_get_upload_baseurl_callback' );-
$string_upload_dir_the_upload_base_url_default_wp_get_upload_dir_baseurlOther variable names:$baseurl
apply_filters( 'activitypub_get_upload_baseurl', $upload_dir['baseurl'] )Follow @activitypub.blog@activitypub.blog for updates and news.