wc_kses_notice()
Filters out the same tags as wp_kses_post, but allows tabindex for <a> element.
Хуки из функции
Возвращает
Строку
.
Использование
wc_kses_notice( $message );
- $message(строка) (обязательный)
- Content to filter through kses.
Список изменений
С версии 3.5.0 | Введена. |
Код wc_kses_notice() wc kses notice WC 9.8.2
function wc_kses_notice( $message ) { $allowed_tags = array_replace_recursive( wp_kses_allowed_html( 'post' ), array( 'a' => array( 'tabindex' => true, ), ) ); /** * Kses notice allowed tags. * * @since 3.9.0 * @param array[]|string $allowed_tags An array of allowed HTML elements and attributes, or a context name such as 'post'. */ return wp_kses( $message, apply_filters( 'woocommerce_kses_notice_allowed_tags', $allowed_tags ) ); }