WC_Email::get_option()
Proxy to parent's get_option and attempt to localize the result using gettext.
Method of the class: WC_Email{}
Hooks from the method
Return
String
.
Usage
$WC_Email = new WC_Email(); $WC_Email->get_option( $key, $empty_value );
- $key(string) (required)
- Option key.
- $empty_value(mixed)
- Value to use when option is empty.
Default: null
WC_Email::get_option() WC Email::get option code WC 9.8.2
public function get_option( $key, $empty_value = null ) { $value = parent::get_option( $key, $empty_value ); return apply_filters( 'woocommerce_email_get_option', $value, $this, $value, $key, $empty_value ); }