-
Notifications
You must be signed in to change notification settings - Fork 82
activitypub_image_src
github-actions[bot] edited this page Aug 7, 2025
·
10 revisions
Filter the image source URL.
This can be used to modify the image source URL before it is used to determine the attachment ID.
add_filter(
'activitypub_image_src',
function( string $src ) {
// Your code here.
return $src;
}
);
-
string
$src
The image source URL.
\apply_filters( 'activitypub_image_src', $tags->get_attribute( 'src' ) )
Follow @[email protected] for updates and news.