Automattic\WooCommerce\EmailEditor\Engine
Email_Editor::get_post_types
Returns the email post types.
Метод класса: Email_Editor{}
Хуки из метода
Возвращает
array.
Использование
$result = Email_Editor::get_post_types(): array;
Код Email_Editor::get_post_types() Email Editor::get post types WC 11.3.0
private static function get_post_types(): array {
$post_types = apply_filters( 'woocommerce_email_editor_post_types', array() );
/**
* Non-array filter results mean no email post types.
*
* @var EmailPostType[] $post_types
*/
$post_types = is_array( $post_types ) ? $post_types : array();
return $post_types;
}