Provider::load_conditionals()

Contents


Return

(bool) Whether or not integrations should load.


Top ↑

Source

File: src/Events_Community/Integrations/Themes/Divi/Provider.php

	public function load_conditionals(): bool {
		$theme             = wp_get_theme();
		$theme_name        = strtolower( $theme->get( 'Name' ) );
		$parent_theme_name = strtolower( $theme->get( 'Parent Theme' ) );

		return $theme_name === 'divi' || $parent_theme_name === 'divi';
	}