WC_Order_Refund_Data_Store_CPT::get_post_title
Get a title for the new post type.
Метод класса: WC_Order_Refund_Data_Store_CPT{}
Хуков нет.
Возвращает
Строку.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_post_title();
Код WC_Order_Refund_Data_Store_CPT::get_post_title() WC Order Refund Data Store CPT::get post title WC 10.9.4
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
);
}