Yoast\WP\SEO\Llms_Txt\Infrastructure\File
WordPress_File_System_Adapter::file_exists
Checks if the llms.txt file exists.
Метод класса: WordPress_File_System_Adapter{}
Хуков нет.
Возвращает
true|false. Whether the llms.txt file exists.
Использование
$WordPress_File_System_Adapter = new WordPress_File_System_Adapter(); $WordPress_File_System_Adapter->file_exists(): bool;
Код WordPress_File_System_Adapter::file_exists() WordPress File System Adapter::file exists Yoast 28.3
public function file_exists(): bool {
if ( $this->is_file_system_available() ) {
global $wp_filesystem;
return $wp_filesystem->exists( $this->get_llms_file_path() );
}
return false;
}