MailPoet\EmailEditor\Engine
Email_Editor::get_default_email_post_args()
Returns the default arguments for email post types.
Method of the class: Email_Editor{}
No Hooks.
Return
Array
.
Usage
// private - for code of main (parent) class only $result = $this->get_default_email_post_args(): array;
Email_Editor::get_default_email_post_args() Email Editor::get default email post args code WC 9.8.1
private function get_default_email_post_args(): array { return array( 'public' => false, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => false, 'show_in_nav_menus' => false, 'supports' => array( 'editor', 'title', 'custom-fields' ), // 'custom-fields' is required for loading meta fields via API. 'has_archive' => true, 'show_in_rest' => true, // Important to enable Gutenberg editor. 'default_rendering_mode' => 'template-locked', 'publicly_queryable' => true, // required by the preview in new tab feature. ); }