default-design
5 months ago
popup
5 months ago
slidein
3 years ago
sshare
5 months ago
class-hustle-meta-base-content.php
3 years ago
class-hustle-meta-base-design.php
3 years ago
class-hustle-meta-base-display.php
6 years ago
class-hustle-meta-base-emails.php
3 months ago
class-hustle-meta-base-integrations.php
3 years ago
class-hustle-meta-base-settings.php
3 years ago
class-hustle-meta-base-visibility.php
5 months ago
class-hustle-meta-base-integrations.php
32 lines
| 1 | <?php |
| 2 | /** |
| 3 | * File for Hustle_Meta_Base_Integrations class. |
| 4 | * |
| 5 | * @package Hustle |
| 6 | * @since 4.2.0 |
| 7 | */ |
| 8 | |
| 9 | /** |
| 10 | * Hustle_Meta_Base_Integrations is the base class for the "integrations" meta of modules. |
| 11 | * This class should handle what's related to the "integrations" meta. |
| 12 | * |
| 13 | * @since 4.2.0 |
| 14 | */ |
| 15 | class Hustle_Meta_Base_Integrations extends Hustle_Meta { |
| 16 | |
| 17 | /** |
| 18 | * Get the defaults for this meta. |
| 19 | * |
| 20 | * @since 4.0.0 |
| 21 | * @return array |
| 22 | */ |
| 23 | public function get_defaults() { |
| 24 | return array( |
| 25 | 'allow_subscribed_users' => '1', |
| 26 | 'disallow_submission_message' => __( 'This email address is already subscribed.', 'hustle' ), |
| 27 | 'active_integrations' => 'local_list', // Default active integration. |
| 28 | 'active_integrations_count' => '1', // Default. Only local_list is active. |
| 29 | ); |
| 30 | } |
| 31 | } |
| 32 |