wp_generate_block_templates_export_file
wp_generate_block_templates_export_file ( No parameters )
Returns:- (WP_Error|string) Path of the ZIP file or error on failure.
Defined at:Change Log: - Introduced in WordPress: 5.9.0
- Deprecated in WordPress: —
Description
Creates an export of the current templates and
template parts from the site editor at the
specified path in a ZIP file.