use_default_gallery_style хук-фильтр . WP 3.1.0
Filters whether to print default gallery styles.
Использование
add_filter( 'use_default_gallery_style', 'filter_function_name_7357' ); function filter_function_name_7357( $print ){ // filter... return $print; }
- $print(true/false)
- Whether to print default gallery styles. Otherwise, defaults to true.
По умолчанию: false if the theme supports HTML5 galleries
Список изменений
С версии 3.1.0 | Введена. |
Где вызывается хук
wp-includes/media.php 2327
if ( apply_filters( 'use_default_gallery_style', ! $html5 ) ) {