[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/ -> template-canvas.php (source)

   1  <?php
   2  /**
   3   * Template canvas file to render the current 'wp_template'.
   4   *
   5   * @package WordPress
   6   */
   7  
   8  /*
   9   * Get the template HTML.
  10   * This needs to run before <head> so that blocks can add scripts and styles in wp_head().
  11   */
  12  $template_html = get_the_block_template_html();
  13  ?><!DOCTYPE html>
  14  <html <?php language_attributes(); ?>>
  15  <head>
  16      <meta charset="<?php bloginfo( 'charset' ); ?>" />
  17      <?php wp_head(); ?>
  18  </head>
  19  
  20  <body <?php body_class(); ?>>
  21  <?php wp_body_open(); ?>
  22  
  23  <?php echo $template_html; // phpcs:ignore WordPress.Security.EscapeOutput ?>
  24  
  25  <?php wp_footer(); ?>
  26  </body>
  27  </html>


Generated: Thu Nov 21 01:00:03 2024 Cross-referenced by PHPXref 0.7.1