WP_Metadata_Lazyloader::lazyload_term_meta()
Deprecated from version 6.3.0. It is no longer supported and can be removed in future releases. Use WP_Metadata_Lazyloader::lazyload_meta_callback() instead.
Lazy-loads term meta for queued terms.
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.
Method of the class: WP_Metadata_Lazyloader{}
No Hooks.
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.
Usage
$WP_Metadata_Lazyloader = new WP_Metadata_Lazyloader(); $WP_Metadata_Lazyloader->lazyload_term_meta( $check );
- $check(mixed) (required)
- The $check param passed from the get_term_metadata
Changelog
Since 4.5.0 | Introduced. |
Deprecated since 6.3.0 | Use WP_Metadata_Lazyloader::lazyload_meta_callback() instead. |
WP_Metadata_Lazyloader::lazyload_term_meta() WP Metadata Lazyloader::lazyload term meta code WP 6.7.1
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' ); }