/var/www/html/wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/Marketing.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php

namespace Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks;

use 
Automattic\WooCommerce\Admin\Features\Features;
use 
Automattic\WooCommerce\Admin\Features\OnboardingTasks\Task;
use 
Automattic\WooCommerce\Internal\Admin\RemoteFreeExtensions\Init as RemoteFreeExtensions;

/**
 * Marketing Task
 */
class Marketing extends Task {
    
/**
     * Used to cache is_complete() method result.
     *
     * @var null
     */
    
private $is_complete_result null;

    
/**
     * ID.
     *
     * @return string
     */
    
public function get_id() {
        return 
'marketing';
    }

    
/**
     * Title.
     *
     * @return string
     */
    
public function get_title() {
        return 
__'Grow your business''woocommerce' );
    }

    
/**
     * Content.
     *
     * @return string
     */
    
public function get_content() {
        return 
__(
            
'Add recommended marketing tools to reach new customers and grow your business',
            
'woocommerce'
        
);
    }

    
/**
     * Time.
     *
     * @return string
     */
    
public function get_time() {
        return 
__'2 minutes''woocommerce' );
    }

    
/**
     * Task visibility.
     *
     * @return bool
     */
    
public function can_view() {
        return 
Features::is_enabled'remote-free-extensions' );
    }

    
/**
     * Get the marketing plugins.
     *
     * @deprecated 9.3.0 Removed to improve performance.
     * @return array
     */
    
public static function get_plugins() {
        
wc_deprecated_function(
            
__METHOD__,
            
'9.3.0'
        
);
        return array();
    }

    
/**
     * Check if the store has installed marketing extensions.
     *
     * @deprecated 9.3.0 Removed to improve performance.
     * @return bool
     */
    
public static function has_installed_extensions() {
        
wc_deprecated_function(
            
__METHOD__,
            
'9.3.0'
        
);
        return 
false;
    }
}