Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: metadata_lazyloader_queued_objects

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
95           /**
96            * Fires after objects are added to the metadata lazy-load queue.
97            *
98            * @since 4.5.0
99            *
100            * @param array                  $object_ids  Array of object IDs.
101            * @param string                 $object_type Type of object being queued.
102            * @param WP_Metadata_Lazyloader $lazyloader  The lazy-loader object.
103            */
104           do_action( 'metadata_lazyloader_queued_objects', $object_ids, $object_type, $this );
105      }
106
107      /**
108       * Resets lazy-load queue for a given object type.
109       *
110       * @since 4.5.0
111       *
112       * @param string $object_type Object type. Accepts 'comment' or 'term'.
113       * @return bool|WP_Error True on success, WP_Error on failure.