public function get_formatted_billing_address() { if ( ! $this->formatted_billing_address ) { // Formatted Addresses. $address = array( 'first_name' => 'ФИО: '.$this->billing_first_name, 'last_name' => ''.$this->billing_last_name, 'company' => $this->billing_company, 'address_1' => 'Район: '.$this->billing_address_1, 'address_2' => $this->billing_address_2, 'city' => 'Населенный пункт: '.$this->billing_city, 'state' => 'Область: '.$this->billing_state, 'postcode' => 'Индекс: '.$this->billing_postcode, 'country' => $this->billing_country ); $this->formatted_billing_address = WC()->countries->get_formatted_address( $address ); } return $this->formatted_billing_address; } 

I added my own names for the fields, I want them to stand out through the html tag b, but WordPress displays them as text.

    1 answer 1

    Php doesn't do this. For these purposes, there is a css. Add your theme to style.css

     input#billing_first_name { font-weight: bold; } 

    for the first_name field. For other fields - the same.