AsyncProductEditorCategoryField
3 years ago
Blueprint
11 months ago
Fulfillments
4 weeks ago
MarketingRecommendations
3 months ago
Navigation
1 year ago
OnboardingTasks
4 weeks ago
PaymentGatewaySuggestions
1 year ago
ProductBlockEditor
4 weeks ago
ProductDataViews
4 weeks ago
ShippingPartnerSuggestions
1 month ago
Features.php
4 weeks ago
LaunchYourStore.php
4 weeks ago
Onboarding.php
1 year ago
ProductVariationsClassicRedesign.php
4 weeks ago
TransientNotices.php
3 years ago
Onboarding.php
104 lines
| 1 | <?php |
| 2 | /** |
| 3 | * WooCommerce Onboarding |
| 4 | */ |
| 5 | |
| 6 | namespace Automattic\WooCommerce\Admin\Features; |
| 7 | |
| 8 | use Automattic\WooCommerce\Admin\DeprecatedClassFacade; |
| 9 | |
| 10 | /** |
| 11 | * Contains backend logic for the onboarding profile and checklist feature. |
| 12 | * |
| 13 | * @deprecated since 6.3.0, use WooCommerce\Internal\Admin\Onboarding. |
| 14 | */ |
| 15 | class Onboarding extends DeprecatedClassFacade { |
| 16 | /** |
| 17 | * The name of the non-deprecated class that this facade covers. |
| 18 | * |
| 19 | * @var string |
| 20 | */ |
| 21 | protected static $facade_over_classname = 'Automattic\WooCommerce\Admin\Features\Onboarding'; |
| 22 | |
| 23 | /** |
| 24 | * The version that this class was deprecated in. |
| 25 | * |
| 26 | * @var string |
| 27 | */ |
| 28 | protected static $deprecated_in_version = '6.3.0'; |
| 29 | |
| 30 | /** |
| 31 | * Hook into WooCommerce. |
| 32 | */ |
| 33 | public function __construct() { |
| 34 | } |
| 35 | |
| 36 | /** |
| 37 | * Get a list of allowed industries for the onboarding wizard. |
| 38 | * |
| 39 | * @deprecated 6.3.0 |
| 40 | * @return array |
| 41 | */ |
| 42 | public static function get_allowed_industries() { |
| 43 | wc_deprecated_function( 'get_allowed_industries', '6.3', '\Automattic\WooCommerce\Internal\Admin\OnboardingIndustries::get_allowed_industries()' ); |
| 44 | return \Automattic\WooCommerce\Internal\Admin\Onboarding\OnboardingIndustries::get_allowed_industries(); |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * Get a list of allowed product types for the onboarding wizard. |
| 49 | * |
| 50 | * @deprecated 6.3.0 |
| 51 | * @return array |
| 52 | */ |
| 53 | public static function get_allowed_product_types() { |
| 54 | wc_deprecated_function( 'get_allowed_product_types', '6.3', '\Automattic\WooCommerce\Internal\Admin\OnboardingProducts::get_allowed_product_types()' ); |
| 55 | return \Automattic\WooCommerce\Internal\Admin\Onboarding\OnboardingProducts::get_allowed_product_types(); |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * Get a list of themes for the onboarding wizard. |
| 60 | * |
| 61 | * @deprecated 6.3.0 |
| 62 | * @return array |
| 63 | */ |
| 64 | public static function get_themes() { |
| 65 | wc_deprecated_function( 'get_themes', '6.3' ); |
| 66 | return array(); |
| 67 | } |
| 68 | |
| 69 | /** |
| 70 | * Get theme data used in onboarding theme browser. |
| 71 | * |
| 72 | * @deprecated 6.3.0 |
| 73 | * @param WP_Theme $theme Theme to gather data from. |
| 74 | * @return array |
| 75 | */ |
| 76 | public static function get_theme_data( $theme ) { |
| 77 | wc_deprecated_function( 'get_theme_data', '6.3' ); |
| 78 | return array(); |
| 79 | } |
| 80 | |
| 81 | /** |
| 82 | * Gets an array of themes that can be installed & activated via the onboarding wizard. |
| 83 | * |
| 84 | * @deprecated 6.3.0 |
| 85 | * @return array |
| 86 | */ |
| 87 | public static function get_allowed_themes() { |
| 88 | wc_deprecated_function( 'get_allowed_themes', '6.3' ); |
| 89 | return array(); |
| 90 | } |
| 91 | |
| 92 | /** |
| 93 | * Get dynamic product data from API. |
| 94 | * |
| 95 | * @deprecated 6.3.0 |
| 96 | * @param array $product_types Array of product types. |
| 97 | * @return array |
| 98 | */ |
| 99 | public static function get_product_data( $product_types ) { |
| 100 | wc_deprecated_function( 'get_product_data', '6.3' ); |
| 101 | return array(); |
| 102 | } |
| 103 | } |
| 104 |