Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks
Purchase::get_content()
Content.
Method of the class: Purchase{}
No Hooks.
Return
String
.
Usage
$Purchase = new Purchase(); $Purchase->get_content();
Purchase::get_content() Purchase::get content code WC 9.2.3
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'] ) ); }