findstr_document_language

apply_filters( 'findstr_document_language', $language_code string|array, $post WP_Post )

  add_filter( 'findstr_document_language', $language_code string|array, $post WP_Post )

Filter the document language.
with this filter you can change the language code of a post.

Parameters

NameTypeDescription
$language_codestring | array

the language code

$postWP_Post

the post object

Returns:

$language_code the language code

Type: 
string | array