Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks
Purchase::get_content()
Content.
Метод класса: Purchase{}
Хуков нет.
Возвращает
Строку
.
Использование
$Purchase = new Purchase(); $Purchase->get_content();
Код Purchase::get_content() Purchase::get content WC 8.7.0
public function get_content() { $products = $this->get_paid_products_and_themes(); if ( count( $products['remaining'] ) === 1 ) { return isset( $products['purchaseable'][0]['description'] ) ? $products['purchaseable'][0]['description'] : $products['purchaseable'][0]['excerpt']; } return 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'] ) ); }