Skip to content

activitypub_locale

github-actions[bot] edited this page Aug 7, 2025 · 10 revisions

Filter the locale of the post.

Auto-generated Example

add_filter(
   'activitypub_locale',
    function(
        string $lang,
        Activitypub\mixed $item
    ) {
        // Your code here.
        return $lang;
    },
    10,
    2
);

Parameters

  • string $lang The locale of the post.
  • Activitypub\mixed $item The post object.

Returns

string The filtered locale of the post.

Files

apply_filters( 'activitypub_locale', $lang, $this->item )

← All Hooks

Users

Developers

Clone this wiki locally