MailPoet\EmailEditor\Engine

User_Theme::get_user_theme_post()publicWC 1.0

Getter for user theme post. If the post does not exist, it will be created.

Method of the class: User_Theme{}

No Hooks.

Return

WP_Post.

Usage

$User_Theme = new User_Theme();
$User_Theme->get_user_theme_post(): WP_Post;

User_Theme::get_user_theme_post() code WC 9.8.1

public function get_user_theme_post(): WP_Post {
	$this->ensure_theme_post();
	if ( ! $this->user_theme_post instanceof WP_Post ) {
		throw new \Exception( 'Error creating user theme post' );
	}
	return $this->user_theme_post;
}