metadata_lazyloader_queued_objects WordPress Action Hook
The metadata_lazyloader_queued_objects hook is triggered when an object is queued for metadata lazy-loading. This hook allows you to lazy-load metadata for an object that you queued earlier. You can use this hook to asynchronously load metadata for an object, without having to wait for the object to load first.
do_action( 'metadata_lazyloader_queued_objects', array $object_ids , string $object_type , WP_Metadata_Lazyloader $lazyloader ) #
Fires after objects are added to the metadata lazy-load queue.
Parameters
- $object_ids
(array)Array of object IDs.
- $object_type
(string)Type of object being queued.
- $lazyloader
(WP_Metadata_Lazyloader)The lazy-loader object.
Source
Changelog
Version | Description |
---|---|
4.5.0 | Introduced. |