Noptin_WooCommerce_New_Order_Trigger::get_rule_description( $rule )


Source Source

File: includes/automation-rules/triggers/class-noptin-woocommerce-new-order-trigger.php

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

        if ( empty( $settings['action'] ) || ! isset( $actions[ $settings['action'] ] ) ) {
            return __( 'When a subscriber makes a new WooCommerce order', 'newsletter-optin-box' );
        }

        if ( ! empty( $settings['new_customer'] ) ) {
            return sprintf(
                __( "When a first-time customer's WooCommerce order is %s", 'newsletter-optin-box' ),
                $actions[ $settings['action'] ]
            );
        }

        return sprintf(
            __( "When a subscriber's WooCommerce order is %s", 'newsletter-optin-box' ),
            $actions[ $settings['action'] ]
        );

    }


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