namespace WPForms\Admin\Education\Admin\Settings;
use \WPForms\Admin\Education\AddonsListBase;
* Base class for Admin/Integrations feature for Lite and Pro.
class Integrations extends AddonsListBase {
* Template for rendering single addon item.
protected $single_addon_template = 'education/admin/settings/integrations-item';
public function hooks() {
add_action( 'wpforms_settings_providers', [ $this, 'filter_addons' ], 1 );
add_action( 'wpforms_settings_providers', [ $this, 'display_addons' ], 500 );
* Indicate if current Education feature is allowed to load.
public function allow_load() {
return wpforms_is_admin_page( 'settings', 'integrations' );
* Get addons for the Settings/Integrations tab.
* @return array Addons data.
protected function get_addons() {
return $this->addons->get_by_path( 'settings_integrations.category', 'crm|email-marketing|integration' );
* Ensure that we do not display activated addon items if those addons are not allowed according to the current license.
public function filter_addons() {
$this->filter_not_allowed_addons( 'wpforms_settings_providers' );