Total Complexity | 4 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class WP_User_Avatar { |
||
10 | |||
11 | /** |
||
12 | * Holds class instance |
||
13 | * |
||
14 | * @since 1.0.0 |
||
15 | * |
||
16 | * @var object \lsx_health_plan\classes\Woocommerce() |
||
17 | */ |
||
18 | protected static $instance = null; |
||
19 | |||
20 | /** |
||
21 | * Constructor |
||
22 | */ |
||
23 | public function __construct() { |
||
24 | add_filter( 'wpua_profile_title', array( $this, 'profile_title' ), 10, 1 ); |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Return an instance of this class. |
||
29 | * |
||
30 | * @since 1.0.0 |
||
31 | * |
||
32 | * @return object \lsx_health_plan\classes\Woocommerce() A single instance of this class. |
||
33 | */ |
||
34 | public static function get_instance() { |
||
35 | // If the single instance hasn't been set, set it now. |
||
36 | if ( null === self::$instance ) { |
||
37 | self::$instance = new self(); |
||
38 | } |
||
39 | return self::$instance; |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * Changes the profile title |
||
44 | * |
||
45 | * @param string $title |
||
46 | * @return string |
||
47 | */ |
||
48 | public function profile_title( $title ) { |
||
52 | } |
||
53 | } |
||
54 |