Automattic\WooCommerce\Admin\Marketing

InstalledExtensions::get_aw_referral_extension_data()protected staticWC 1.0

Get AutomateWoo Refer a Friend extension data.

Method of the class: InstalledExtensions{}

No Hooks.

Return

Array|true|false.

Usage

$result = InstalledExtensions::get_aw_referral_extension_data();

InstalledExtensions::get_aw_referral_extension_data() code WC 7.1.0

protected static function get_aw_referral_extension_data() {
	$slug = 'automatewoo-referrals';

	if ( ! PluginsHelper::is_plugin_installed( $slug ) ) {
		return false;
	}

	$data         = self::get_extension_base_data( $slug );
	$data['icon'] = WC_ADMIN_IMAGES_FOLDER_URL . '/marketing/automatewoo.svg';

	if ( 'activated' === $data['status'] ) {
		$data['docsUrl'] = 'https://automatewoo.com/docs/refer-a-friend/';
		$data['status']  = 'configured';
		if ( function_exists( 'AW_Referrals' ) ) {
			$data['settingsUrl'] = admin_url( 'admin.php?page=automatewoo-settings&tab=referrals' );
		}
	}

	return $data;
}