WC_Admin_Post_Types::enter_title_here()publicWC 1.0

Change title boxes in admin.

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

No Hooks.

Return

String.

Usage

$WC_Admin_Post_Types = new WC_Admin_Post_Types();
$WC_Admin_Post_Types->enter_title_here( $text, $post );
$text(string) (required)
Text to shown.
$post(WP_Post) (required)
Current post object.

Code of WC_Admin_Post_Types::enter_title_here() WC 6.6.1

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;
}