array(), ); /** * Set metabox options */ switch ( $step_type ) { case 'landing': $settings = \Cartflows_Landing_Meta_Data::get_instance()->get_settings( $step_id ); break; case 'checkout': if ( class_exists( 'WooCommerce' ) ) { $settings = \Cartflows_Checkout_Meta_Data::get_instance()->get_settings( $step_id ); } break; case 'optin': if ( class_exists( 'WooCommerce' ) ) { $settings = \Cartflows_Optin_Meta_Data::get_instance()->get_settings( $step_id ); } break; case 'thankyou': if ( class_exists( 'WooCommerce' ) ) { $settings = \Cartflows_Thankyou_Meta_Data::get_instance()->get_settings( $step_id ); } break; default: break; } // Added WP Fusion filter compatibility. $settings = wcf_apply_filters_deprecated( 'cartflows_' . $step_type . '_step_meta_settings', array( $settings, $step_id ), '1.8.0', 'cartflows_admin_' . $step_type . '_step_meta_settings' ); $settings = apply_filters( 'cartflows_admin_' . $step_type . '_step_meta_settings', $settings, $step_id ); return $settings; } }