MailPoet\EmailEditor\Engine

Email_Editor::register_email_post_types()privateWC 1.0

Register all custom post types that should be edited via the email editor The post types are added via mailpoet_email_editor_post_types filter.

Method of the class: Email_Editor{}

No Hooks.

Return

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() code WC 9.8.1

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'] )
		);
	}
}