1 | <?php |
||
13 | class Yikes_Inc_Easy_MailChimp_API_Profile extends Yikes_Inc_Easy_MailChimp_API_Abstract_Items { |
||
|
|||
14 | |||
15 | /** |
||
16 | * The base API path. |
||
17 | * |
||
18 | * @since %VERSION% |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $base_path = 'users/profile.json'; |
||
22 | |||
23 | /** |
||
24 | * Whether a V2 API connection is required. |
||
25 | * |
||
26 | * @since %VERSION% |
||
27 | * @var bool |
||
28 | */ |
||
29 | protected $requires_v2 = true; |
||
30 | |||
31 | /** |
||
32 | * Get profile data from the API. |
||
33 | * |
||
34 | * @author Jeremy Pry |
||
35 | * @since %VERSION% |
||
36 | * |
||
37 | * @param bool $use_transients Whether to use a transient in the response. |
||
38 | * |
||
39 | * @return array|WP_Error |
||
40 | */ |
||
41 | public function get_profile( $use_transients = true ) { |
||
46 | } |
||
47 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.