mastodon_api_account - akirk/friends GitHub Wiki

Auto-generated Example

add_filter(
   'mastodon_api_account',
    function(
        $ret,
        $account_id,
        $ret = null,
        $post_id = null
    ) {
        // Your code here.
        return $ret;
    },
    10,
    2
);

Parameters

  • $ret
  • $account_id Other variable names: $ID, $attributed_to_url, $get_friend_user_->id
  • $ret
  • $post_id

Files

apply_filters( 'mastodon_api_account', null, $account_id )
apply_filters( 'mastodon_api_account', null, $friend_user->ID, null, $post_id )
apply_filters( 'mastodon_api_account', null, $attributed_to_url )
apply_filters( 'mastodon_api_account', null, $user_feed->get_friend_user()->ID )

← All Hooks