title = __('Brevo', 'notificationx'); $this->module_title = __('Brevo', 'notificationx'); } /** * Themes inherited from the Email Subscription type, minus the ones Brevo * has no data for. * * @return array */ public function get_themes() { return $this->exclude_themes( parent::get_themes(), self::UNSUPPORTED_THEMES ); } /** * Responsive themes inherited from the Email Subscription type, minus the * ones Brevo has no data for. * * @return array */ public function get_res_themes() { return $this->exclude_themes( parent::get_res_themes(), self::UNSUPPORTED_RES_THEMES ); } /** * Drops type-level themes this source cannot render. * * Extension::get_themes() prefixes the type's theme names with * "{$this->types}_" whenever the extension declares no themes of its own, * which is the case here, so the keys to unset carry that prefix. * * Dropping a theme here is what hides it: Extension::__nx_themes() appends * this source to each returned theme's `includes source` rule, so a theme * that never comes back from this method never lists `brevo` as a valid * source and stays hidden in the picker. * * @param array $themes * @param string[] $unsupported * @return array */ protected function exclude_themes( $themes, $unsupported ) { if ( ! is_array( $themes ) ) { return $themes; } foreach ( $unsupported as $name ) { unset( $themes[ $this->types . '_' . $name ] ); } return $themes; } /** * Get data for Brevo Extension. * * @param array $args Settings arguments. * @return array */ public function get_data( $args = array() ){ return 'Hello From Brevo'; } public function doc(){ /* translators: %1$s: signed in & retrieved API key from Brevo account link URL, %2$s: documentation link URL, %3$s: Integration with Brevo link URL, %4$s: Email Marketing Strategy link URL, %5$s: Email Subscription List link URL */ return sprintf(__('

Make sure that you have signed in & retrieved an API key from your Brevo account to use its contact list & email subscriptions data. For further assistance, check out our step by step documentation.

👉 NotificationX Integration with Brevo

Recommended Blogs:

🔥 How To Improve Your Email Marketing Strategy With Social Proof

🚀 Hacks To Grow Your Email Subscription List On WordPress Website

', 'notificationx'), 'https://help.brevo.com/hc/en-us/articles/209467485-Create-and-manage-your-API-keys', 'https://notificationx.com/docs/brevo-email-subscription-alert/', 'https://notificationx.com/integrations/brevo/', 'https://wpdeveloper.com/email-marketing-social-proof/', 'https://wpdeveloper.com/email-subscription-list-wordpress/' ); } }