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

Filter: wpseo_llmstxt_filesystem_path Allows editing the filesystem path of the llmst.txt file to account for server restrictions to the filesystem.

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

add_filter( 'wpseo_llmstxt_filesystem_path', 'wp_kama_wpseo_llmstxt_filesystem_path_filter' );

/**
 * Function for `wpseo_llmstxt_filesystem_path` filter-hook.
 * 
 * @param string $llms_filesystem_path The filesystem path of the llmst.txt file that defaults to
 *                                    get_home_path() or the $_SERVER['DOCUMENT_ROOT'] if the home
 *                                    path is not writeable.
 *
 * @return string
 */
function wp_kama_wpseo_llmstxt_filesystem_path_filter( $llms_filesystem_path ){
	// filter...
	return $llms_filesystem_path;
}
$llms_filesystem_path(строка)
The filesystem path of the llmst.txt file that defaults to get_home_path() or the $_SERVER['DOCUMENT_ROOT'] if the home path is not writeable.

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

WordPress_File_System_Adapter::get_llms_file_path()
wpseo_llmstxt_filesystem_path
yoast/src/llms-txt/infrastructure/file/wordpress-file-system-adapter.php 114
$llms_filesystem_path = \apply_filters( 'wpseo_llmstxt_filesystem_path', $llms_filesystem_path );

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

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