astra_has_pro_woocommerce_addon()

Check if Woocommerce pro addons is enabled.


Description


Return

(bool) true|false.


Source

File: inc/compatibility/woocommerce/woocommerce-common-functions.php

function astra_has_pro_woocommerce_addon() {
	/** @psalm-suppress UndefinedClass  */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort
	return ( defined( 'ASTRA_EXT_VER' ) && Astra_Ext_Extension::is_active( 'woocommerce' ) ) ? true : false;
	/** @psalm-suppress UndefinedClass  */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort
}


User Contributed Notes

You must log in before being able to contribute a note or feedback.