WordPress at a glance
function is not described

WP_Metadata_Lazyloader::reset_queue() public WP 4.5.0

Resets lazy-load queue for a given object type.

{} It's a method of the class: WP_Metadata_Lazyloader{}

No Hooks.

Return

null|WP_Error. WP_Error on failure.

Usage

$WP_Metadata_Lazyloader = new WP_Metadata_Lazyloader();
$WP_Metadata_Lazyloader->reset_queue( $object_type );
$object_type(string) (required)
Object type. Accepts 'comment' or 'term'.

Changelog

Since 4.5.0 Introduced.

Code of WP_Metadata_Lazyloader::reset_queue() WP 5.7.2

<?php
public function reset_queue( $object_type ) {
	if ( ! isset( $this->settings[ $object_type ] ) ) {
		return new WP_Error( 'invalid_object_type', __( 'Invalid object type.' ) );
	}

	$type_settings = $this->settings[ $object_type ];

	$this->pending_objects[ $object_type ] = array();
	remove_filter( $type_settings['filter'], $type_settings['callback'] );
}