ap_is_addon_active( string $addon )

Description #

Check if addon is active.

Parameters #

  • $addon
    string (Required) Addon file name without path.

Source #

File: includes/functions.php

function ap_is_addon_active( $addon ) {
	$addons = ap_get_active_addons();

	if ( isset( $addons[ $addon ] ) ) {
		return true;
	}

	return false;
}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment