WC_Settings_API::get_description_html()
Get HTML for descriptions.
Метод класса: WC_Settings_API{}
Хуков нет.
Возвращает
Строку
.
Использование
$WC_Settings_API = new WC_Settings_API(); $WC_Settings_API->get_description_html( $data );
- $data(массив) (обязательный)
- Data for the description.
Код WC_Settings_API::get_description_html() WC Settings API::get description html WC 9.7.1
public function get_description_html( $data ) { if ( true === $data['desc_tip'] ) { $description = ''; } elseif ( ! empty( $data['desc_tip'] ) ) { $description = $data['description']; } elseif ( ! empty( $data['description'] ) ) { $description = $data['description']; } else { $description = ''; } return $description ? '<p class="description">' . wp_kses_post( $description ) . '</p>' . "\n" : ''; }