-
Notifications
You must be signed in to change notification settings - Fork 7
mastodon_entity_relationship
Alex Kirk edited this page Jun 5, 2024
·
9 revisions
Modify account relationship.
add_filter(
'mastodon_entity_relationship',
function (
Enable_Mastodon_Apps\Relationship_Entity $relationship,
string $user_id,
WP_REST_Request $request
) {
// Your code here
return $relationship;
},
10,
3
);
-
Enable_Mastodon_Apps\Relationship_Entity
$relationship
The account relationship. -
string
$user_id
The user ID. -
WP_REST_Request
$request
The request object.
Enable_Mastodon_Apps\Relationship_Entity
The modified account relationship.
apply_filters( 'mastodon_entity_relationship', $relationship, $user_id, $request )