apply_filters( ‘media_library_infinite_scrolling’, bool $infinite_scrolling )

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

Description

This setting respects the current user’s “Infinite Scrolling” personal option, but a filter callback takes precedence over that preference.

Parameters

$infinite_scrollingbool
Whether the Media Library grid has infinite scrolling.

Source

$infinite_scrolling = apply_filters( 'media_library_infinite_scrolling', $infinite_scrolling );

Changelog

VersionDescription
7.1.0Changed default to true and introduced per-user opt-out of infinite scrolling.
5.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.