Automattic\WooCommerce\EmailEditor\Engine
User_Theme::get_user_theme_post
Getter for user theme post. If the post does not exist, it will be created.
Method of the class: User_Theme{}
No Hooks.
Returns
WP_Post.
Usage
$User_Theme = new User_Theme(); $User_Theme->get_user_theme_post(): WP_Post;
User_Theme::get_user_theme_post() User Theme::get user theme post code WC 10.5.0
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;
}