Skip to content

activitypub_image_src

github-actions[bot] edited this page Aug 18, 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.

Auto-generated Example

/**
 * Filter the image source URL.
 * 
 * This can be used to modify the image source URL before it is used to
 * determine the attachment ID.
 *
 * @param string $src 
 * @return string The filtered value.
 */
function my_activitypub_image_src_callback( string $src ) {
    // Your code here.
    return $src;
}
add_filter( 'activitypub_image_src', 'my_activitypub_image_src_callback' );

Parameters

  • string $src The image source URL.

Files

\apply_filters( 'activitypub_image_src', $tags->get_attribute( 'src' ) )

← All Hooks

Users

Developers

Clone this wiki locally