Abstract_WC_Order_Data_Store_CPT::get_post_title()protectedWC 1.0

Get a title for the new post type.

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

Хуков нет.

Возвращает

Строку.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_post_title();

Код Abstract_WC_Order_Data_Store_CPT::get_post_title() WC 8.7.0

protected function get_post_title() {
	// @codingStandardsIgnoreStart
	/* translators: %s: Order date */
	return sprintf( __( 'Order – %s', 'woocommerce' ), (new DateTime('now'))->format( _x( 'M d, Y @ h:i A', 'Order date parsed by DateTime::format', 'woocommerce' ) ) );
	// @codingStandardsIgnoreEnd
}