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