wpseo_llmstxt_encoding_prefix хук-фильтрYoast 1.0

Filter: wpseo_llmstxt_encoding_prefix Allows editing the Byte Order Mark (BOM) for UTF-8 we prepend to the llmst.txt file.

Использование

add_filter( 'wpseo_llmstxt_encoding_prefix', 'wp_kama_wpseo_llmstxt_encoding_prefix_filter' );

/**
 * Function for `wpseo_llmstxt_encoding_prefix` filter-hook.
 * 
 * @param string $encoding_prefix The Byte Order Mark (BOM) for UTF-8 we prepend to the llmst.txt file.
 *
 * @return string
 */
function wp_kama_wpseo_llmstxt_encoding_prefix_filter( $encoding_prefix ){

	// filter...
	return $encoding_prefix;
}
$encoding_prefix(строка)
The Byte Order Mark (BOM) for UTF-8 we prepend to the llmst.txt file.

Где вызывается хук

Populate_File_Command_Handler::encode_content()
wpseo_llmstxt_encoding_prefix
yoast/src/llms-txt/application/file/commands/populate-file-command-handler.php 107
$encoding_prefix = \apply_filters( 'wpseo_llmstxt_encoding_prefix', "\xEF\xBB\xBF" );

Где используется хук в Yoast SEO

Использование не найдено.