Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableRefundDataStore::get_post_title()protectedWC 1.0

Get a title for the new post type.

{} It's a method of the class: OrdersTableRefundDataStore{}

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_post_title();

Code of OrdersTableRefundDataStore::get_post_title() WC 7.1.0

protected function get_post_title() {
	return sprintf(
	/* translators: %s: Order date */
		__( 'Refund – %s', 'woocommerce' ),
		( new \DateTime( 'now' ) )->format( _x( 'M d, Y @ h:i A', 'Order date parsed by DateTime::format', 'woocommerce' ) ) // phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment, WordPress.WP.I18n.UnorderedPlaceholdersText
	);
}