media_library_infinite_scrolling filter-hookWP 5.8.0

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

Usage

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.

Changelog

Since 5.8.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.