WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

Purchase::get_content() public WC 1.0

Content.

{} Это метод класса: Purchase{}

Хуков нет.

Возвращает

Строку.

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

$Purchase = new Purchase();
$Purchase->get_content();

Код Purchase::get_content() WC 6.1.1

public function get_content() {
	$products = self::get_products();

	return count( $products['remaining'] ) === 1
		? $products['purchaseable'][0]['description']
		: sprintf(
			/* translators: %1$s: list of product names comma separated, %2%s the last product name */
			__(
				'Good choice! You chose to add %1$s and %2$s to your store.',
				'woocommerce'
			),
			implode( ', ', array_slice( $products['remaining'], 0, -1 ) ) . ( count( $products['remaining'] ) > 2 ? ',' : '' ),
			end( $products['remaining'] )
		);
}