WC_Admin_Post_Types::enter_title_here()publicWC 1.0

Change title boxes in admin.

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.

WC_Admin_Post_Types::enter_title_here() code WC 8.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;
}