Dev Resources

  • Home
  • Reference
  • BuddyX Theme
  • Functions
  • Hooks
  • Classes
Filter by type:
Search
Browse: Home / Reference / Classes / WC_Email / WC_Email::get_email_type_options()

WC_Email::get_email_type_options()

Email type options.

Contents

  • Description
    • Return
    • Source
  • Related
    • Used By
  • User Contributed Notes

Description #Description


Return #Return

(array)


Top ↑

Source #Source

File: includes/emails/class-wc-email.php

	public function get_email_type_options() {
		$types = array( 'plain' => __( 'Plain text', 'woocommerce' ) );

		if ( class_exists( 'DOMDocument' ) ) {
			$types['html']      = __( 'HTML', 'woocommerce' );
			$types['multipart'] = __( 'Multipart', 'woocommerce' );
		}

		return $types;
	}

Expand full source code Collapse full source code


Top ↑

Related #Related

Top ↑

Used By #Used By

Used By
Used By Description
includes/emails/class-wc-email.php: WC_Email::init_form_fields()

Initialise Settings Form Fields – these are generic email options most will use.


Top ↑

User Contributed Notes #User Contributed Notes

You must log in before being able to contribute a note or feedback.

Proudly powered by WordPress