HTTP/2 301
server: nginx
date: Sun, 28 Dec 2025 07:49:29 GMT
content-type: text/html; charset=UTF-8
x-olaf: ⛄
vary: accept, content-type
x-redirect-by: WordPress
location: https://developer.wordpress.org/reference/classes/wp_metadata_lazyloader/reset_queue/
x-frame-options: SAMEORIGIN
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 2
HTTP/2 200
server: nginx
date: Sun, 28 Dec 2025 07:49:30 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
x-olaf: ⛄
vary: accept, content-type
link:
; rel="https://api.w.org/"
link:
; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
x-frame-options: SAMEORIGIN
content-encoding: gzip
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 2
WP_Metadata_Lazyloader::reset_queue() – Method | Developer.WordPress.org
WordPress Developer Resources
WP_Metadata_Lazyloader::reset_queue()
WP_Metadata_Lazyloader::reset_queue( string $object_type ): void|WP_Error
Resets lazy-load queue for a given object type.
$object_typestringrequiredObject type. Accepts 'comment' or 'term'.
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'] );
}
View all references View on Trac View on GitHub
| Version | Description |
|---|
| 4.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.