Automattic\WooCommerce\Internal\EmailEditor
BlockEmailRenderer::get_email_post_by_wc_email
Get the email post for a given WC_Email.
Method of the class: BlockEmailRenderer{}
No Hooks.
Returns
\WP_Post|null.
Usage
// private - for code of main (parent) class only $result = $this->get_email_post_by_wc_email( $email ): ?\WP_Post;
- $email(WC_Email) (required)
- WooCommerce email.
BlockEmailRenderer::get_email_post_by_wc_email() BlockEmailRenderer::get email post by wc email code WC 10.3.6
private function get_email_post_by_wc_email( \WC_Email $email ): ?\WP_Post {
return $this->template_manager->get_email_post( $email->id );
}