Automattic\WooCommerce\Internal\Admin\EmailPreview
EmailPreview::get_all_email_settings_ids()
Get all email settings IDs.
Method of the class: EmailPreview{}
No Hooks.
Return
null
. Nothing (null).
Usage
$result = EmailPreview::get_all_email_settings_ids();
EmailPreview::get_all_email_settings_ids() EmailPreview::get all email settings ids code WC 9.7.1
public static function get_all_email_settings_ids() { if ( ! self::$email_settings_ids_initialized ) { self::$email_settings_ids_initialized = true; $emails = WC()->mailer()->get_emails(); foreach ( $emails as $email ) { self::$email_content_settings_ids = array_merge( self::$email_content_settings_ids, self::get_email_content_settings_ids( $email->id ) ); } self::$email_content_settings_ids = array_unique( self::$email_content_settings_ids ); } return array_merge( self::$email_style_settings_ids, self::$email_content_settings_ids, ); }