You appear to be a bot. Output may be restricted
Description
Create the 'page_archive.php' file within child theme if missing.
Usage
$int|bool|void = Upgrade_DB_3001::create_archive_template();
Parameters
Returns
int|bool|void Void if file exists, number of bytes written, or false if error.
Source
File name: genesis/lib/classes/Upgrade/Upgrade_DB_3001.php
Lines:
1 to 29 of 29
public function create_archive_template() { $directory_path = get_stylesheet_directory(); $page_archive_path = "{$directory_path}/page_archive.php"; if ( file_exists( $page_archive_path ) ) { return; } $content = <<<'CONTENT' <?php /** * Template Name: Archive */ remove_action( 'genesis_entry_content', 'genesis_do_post_content' ); add_action( 'genesis_entry_content', 'genesis_page_archive_content' ); function genesis_page_archive_content() { $heading = ( genesis_a11y( 'headings' ) ? 'h2' : 'h4' ); genesis_sitemap( $heading ); } genesis(); CONTENT; return $this->filesystem()->put_contents( $page_archive_path, $content ); }