WC_Admin_Post_Types::enter_title_here()
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() WC Admin Post Types::enter title here code WC 9.7.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; }