WP_Metadata_Lazyloader::lazyload_term_meta( mixed $check ): mixed

This method has been deprecated. Use WP_Metadata_Lazyloader::lazyload_meta_callback() instead.

Lazy-loads term meta for queued terms.

Description

This method is public so that it can be used as a filter callback. As a rule, there is no need to invoke it directly.

Parameters

$checkmixedrequired
The $check param passed from the 'get_term_metadata' hook.

Return

mixed In order not to short-circuit get_metadata(). Generally, this is null, but it could be another value if filtered by a plugin.

Source

public function lazyload_term_meta( $check ) {
	_deprecated_function( __METHOD__, '6.3.0', 'WP_Metadata_Lazyloader::lazyload_meta_callback' );
	return $this->lazyload_meta_callback( $check, 0, '', false, 'term' );
}

Changelog

VersionDescription
6.3.0Use WP_Metadata_Lazyloader::lazyload_meta_callback() instead.
4.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.