Add_Divi_Integration::plugin_active()

Check if Divi theme is active

Contents


Return Return

(bool)


Source Source

File: src/integrations/divi/add-divi-integration.php

	public function plugin_active() {
		$theme = wp_get_theme(); // gets the current theme
		if ( 'Divi' === $theme->get_template() ) {
			return true;
		}

		return false;
	}