MailPoet\EmailEditor\Engine\Templates
Template::__construct()
Constructor of the class.
Method of the class: Template{}
No Hooks.
Return
null
. Nothing (null).
Usage
$Template = new Template(); $Template->__construct(;
Template::__construct() Template:: construct code WC 9.8.1
public function __construct( string $plugin_uri, string $slug, string $title, string $description, string $content, array $post_types = array() ) { $this->plugin_uri = $plugin_uri; $this->slug = $slug; $this->name = "{$plugin_uri}//{$slug}"; // The template name is composed from the namespace and the slug. $this->title = $title; $this->description = $description; $this->content = $content; $this->post_types = $post_types; }