Noptin_Email_Action::get_rule_description( $rule )
Contents
Source Source
File: includes/automation-rules/actions/class-noptin-email-action.php
public function get_rule_description( $rule ) { $settings = $rule->action_settings; if ( empty( $settings['email_subject'] ) ) { return __( 'send them an email', 'newsletter-optin-box' ); } $email_subject = esc_html( $settings['email_subject'] ); return sprintf( __( 'send them an email with the subject %s', 'newsletter-optin-box' ), "<code>$email_subject</code>" ); }
Expand full source code Collapse full source code View on GitHub