-
Notifications
You must be signed in to change notification settings - Fork 83
activitypub_locale
github-actions[bot] edited this page Jul 23, 2025
·
11 revisions
Filter the locale of the post.
add_filter(
'activitypub_locale',
function (
string $lang,
Activitypub\mixed $item
) {
// Your code here
return $lang;
},
10,
2
);-
string$langThe locale of the post. -
Activitypub\mixed$itemThe post object.
string The filtered locale of the post.
apply_filters( 'activitypub_locale', $lang, $this->item )Follow @[email protected] for updates and news.