wp_print_script_tag()
Prints formatted <script> loader tag.
It is possible to inject attributes in the <script> tag via the wp_script_attributes filter. Automatically injects type attribute if needed.
Хуков нет.
Возвращает
null. Ничего (null).
Использование
wp_print_script_tag( $attributes );
- $attributes(обязательный)
- .
Список изменений
| С версии 5.7.0 | Введена. |
Код wp_print_script_tag() wp print script tag WP 7.0.1
function wp_print_script_tag( $attributes ) {
echo wp_get_script_tag( $attributes );
}