Automattic\WooCommerce\Internal\EmailEditor\WCTransactionalEmails
WCTransactionalEmailPostsManager::get_option_name
Gets the option name for a specific email type.
Method of the class: WCTransactionalEmailPostsManager{}
No Hooks.
Returns
String. The option name e.g. 'woocommerce_email_templates_customer_new_account_post_id'
Usage
// private - for code of main (parent) class only $result = $this->get_option_name( $email_type );
- $email_type(string) (required)
- The type of email template e.g. 'customer_new_account' from the WC_Email->id property.
WCTransactionalEmailPostsManager::get_option_name() WCTransactionalEmailPostsManager::get option name code WC 10.3.6
private function get_option_name( $email_type ) {
return str_replace( '%', $email_type, self::WC_OPTION_NAME );
}