media_library_infinite_scrolling хук-фильтрWP 5.8.0

Filters whether the Media Library grid has infinite scrolling. Default false.

Использование

add_filter( 'media_library_infinite_scrolling', 'wp_kama_media_library_infinite_scrolling_filter' );

/**
 * Function for `media_library_infinite_scrolling` filter-hook.
 * 
 * @param bool $infinite Whether the Media Library grid has infinite scrolling.
 *
 * @return bool
 */
function wp_kama_media_library_infinite_scrolling_filter( $infinite ){

	// filter...
	return $infinite;
}
$infinite(true|false)
Whether the Media Library grid has infinite scrolling.

Список изменений

С версии 5.8.0 Введена.

Где вызывается хук

wp_enqueue_media()
media_library_infinite_scrolling
wp-includes/media.php 4510
$infinite_scrolling = apply_filters( 'media_library_infinite_scrolling', false );

Где используется хук в WordPress

Использование не найдено.