-
Notifications
You must be signed in to change notification settings - Fork 9
mastodon_api_status_by_url
github-actions[bot] edited this page Apr 14, 2026
·
4 revisions
Fetch a status by its remote URL.
add_filter(
'mastodon_api_status_by_url',
function (
Enable_Mastodon_Apps\Entity\Status $status = null,
string $url
) {
// Your code here
return $status;
},
10,
2
);-
Enable_Mastodon_Apps\Entity\Status|null$statusThe status data. -
string$urlThe remote URL of the status.
Enable_Mastodon_Apps\Entity\Status|null The status data.
apply_filters( 'mastodon_api_status_by_url', null, $remapped_url )