event_dir = __DIR__; $this->nice_name = __( 'WooCommerce Membership', 'wp-marketing-automations-pro' ); $this->group_name = __( 'WooCommerce', 'wp-marketing-automations-pro' ); $this->group_slug = 'wc'; $this->priority = 50; } /** * Ensures only one instance of the class is loaded or can be loaded. * * @return BWFAN_WCM_Source|null */ public static function get_instance() { if ( null === self::$instance ) { self::$instance = new self(); } return self::$instance; } } /** * Register this as a source. */ if ( bwfan_is_woocommerce_active() && bwfan_is_woocommerce_membership_active() ) { BWFAN_Load_Sources::register( 'BWFAN_WCM_Source' ); }