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

()The lazy-loader object.


Top ↑

Source

File: wp-includes/class-wp-metadata-lazyloader.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.