-
Notifications
You must be signed in to change notification settings - Fork 80
activitypub_get_upload_baseurl
github-actions[bot] edited this page Aug 29, 2025
·
13 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_baseurl
Other variable names:$baseurl
apply_filters( 'activitypub_get_upload_baseurl', $upload_dir['baseurl'] )
Follow @[email protected] for updates and news.