Automattic\WooCommerce\Admin\Marketing

InstalledExtensions::get_aw_birthdays_extension_data()protected staticWC 1.0

Get AutomateWoo Birthdays extension data.

Метод класса: InstalledExtensions{}

Хуков нет.

Возвращает

Массив|true|false.

Использование

$result = InstalledExtensions::get_aw_birthdays_extension_data();

Код InstalledExtensions::get_aw_birthdays_extension_data() WC 7.1.1

protected static function get_aw_birthdays_extension_data() {
	$slug = 'automatewoo-birthdays';

	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/getting-started-with-birthdays/';
		$data['status']  = 'configured';
		if ( function_exists( 'AW_Birthdays' ) ) {
			$data['settingsUrl'] = admin_url( 'admin.php?page=automatewoo-settings&tab=birthdays' );
		}
	}

	return $data;
}