Skip to content

friends_get_activitypub_metadata

Alex Kirk edited this page Apr 8, 2024 · 9 revisions

Generic Example

add_filter(
    'friends_get_activitypub_metadata',
    function (
        array $array,
        string $url
    ) {
        // Your code here
        return $array;
    },
    10,
    2
);

Parameters

  • array $array
  • string $url Other examples: $url, $attributedTo

Files

apply_filters( 'friends_get_activitypub_metadata', array(), $feed_details['url'] )
apply_filters( 'friends_get_activitypub_metadata', array(), $url )
apply_filters( 'friends_get_activitypub_metadata', array(), $meta['attributedTo'] )

Hooks

Clone this wiki locally