WC_Admin_Post_Types::enter_title_here()publicWC 1.0

Change title boxes in admin.

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

Хуков нет.

Возвращает

Строку.

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

$WC_Admin_Post_Types = new WC_Admin_Post_Types();
$WC_Admin_Post_Types->enter_title_here( $text, $post );
$text(строка) (обязательный)
Text to shown.
$post(WP_Post) (обязательный)
Current post object.

Код WC_Admin_Post_Types::enter_title_here() WC 8.7.0

public function enter_title_here( $text, $post ) {
	switch ( $post->post_type ) {
		case 'product':
			$text = esc_html__( 'Product name', 'woocommerce' );
			break;
		case 'shop_coupon':
			$text = esc_html__( 'Coupon code', 'woocommerce' );
			break;
	}
	return $text;
}