Automattic\WooCommerce\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.
Returns
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 10.6.2
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' => array(
'default-mode' => 'template-locked',
),
'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.
);
}