WC_Admin_Post_Types::enter_title_here()
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 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; }