Automattic\WooCommerce\EmailEditor\Engine
Email_Editor::register_email_post_types
Register all custom post types that should be edited via the email editor The post types are added via woocommerce_email_editor_post_types filter.
Method of the class: Email_Editor{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->register_email_post_types(): void;
Email_Editor::register_email_post_types() Email Editor::register email post types code WC 10.6.2
private function register_email_post_types(): void {
foreach ( $this->get_post_types() as $post_type ) {
register_post_type(
$post_type['name'],
array_merge( $this->get_default_email_post_args(), $post_type['args'] )
);
}
}