angelovcom.net

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

class-wp-block-template.php (1213B)


      1 <?php
      2 /**
      3  * Blocks API: WP_Block_Template class
      4  *
      5  * @package WordPress
      6  * @since 5.8.0
      7  */
      8 
      9 /**
     10  * Class representing a block template.
     11  *
     12  * @since 5.8.0
     13  */
     14 class WP_Block_Template {
     15 
     16 	/**
     17 	 * Type: wp_template.
     18 	 *
     19 	 * @since 5.8.0
     20 	 * @var string
     21 	 */
     22 	public $type;
     23 
     24 	/**
     25 	 * Theme.
     26 	 *
     27 	 * @since 5.8.0
     28 	 * @var string
     29 	 */
     30 	public $theme;
     31 
     32 	/**
     33 	 * Template slug.
     34 	 *
     35 	 * @since 5.8.0
     36 	 * @var string
     37 	 */
     38 	public $slug;
     39 
     40 	/**
     41 	 * Id.
     42 	 *
     43 	 * @since 5.8.0
     44 	 * @var string
     45 	 */
     46 	public $id;
     47 
     48 	/**
     49 	 * Title.
     50 	 *
     51 	 * @since 5.8.0
     52 	 * @var string
     53 	 */
     54 	public $title = '';
     55 
     56 	/**
     57 	 * Content.
     58 	 *
     59 	 * @since 5.8.0
     60 	 * @var string
     61 	 */
     62 	public $content = '';
     63 
     64 	/**
     65 	 * Description.
     66 	 *
     67 	 * @since 5.8.0
     68 	 * @var string
     69 	 */
     70 	public $description = '';
     71 
     72 	/**
     73 	 * Source of the content. `theme` and `custom` is used for now.
     74 	 *
     75 	 * @since 5.8.0
     76 	 * @var string
     77 	 */
     78 	public $source = 'theme';
     79 
     80 	/**
     81 	 * Post Id.
     82 	 *
     83 	 * @since 5.8.0
     84 	 * @var integer|null
     85 	 */
     86 	public $wp_id;
     87 
     88 	/**
     89 	 * Template Status.
     90 	 *
     91 	 * @since 5.8.0
     92 	 * @var string
     93 	 */
     94 	public $status;
     95 
     96 	/**
     97 	 * Whether a template is, or is based upon, an existing template file.
     98 	 *
     99 	 * @since 5.8.0
    100 	 * @var boolean
    101 	 */
    102 	public $has_theme_file;
    103 }