Noptin_WooCommerce_Lifetime_Value_Trigger::get_rule_description( $rule )


Source Source

File: includes/automation-rules/triggers/class-noptin-woocommerce-lifetime-value-trigger.php

    public function get_rule_description( $rule ) {
        $settings = $rule->trigger_settings;

        if ( empty( $settings['lifetime_value'] ) ) {
            return __( 'When a subscriber reaches a WooCommerce lifetime value', 'newsletter-optin-box' );
        }

        $value = wc_price( $settings['lifetime_value'] );
        return sprintf(
            __( 'When a subscriber reaches a WooCommerce lifetime value of %s', 'newsletter-optin-box' ),
            $value
        );
    }

Top ↑

User Contributed Notes User Contributed Notes

30 day money back guarantee
Safe & Secure online payment
Custom CSS Slide Example
Custom Animation Example
Default Animation