WP_Metadata_Lazyloader::__construct()

In this article

Constructor.

Source

public function __construct() {
	$this->settings = array(
		'term'    => array(
			'filter'   => 'get_term_metadata',
			'callback' => array( $this, 'lazyload_meta_callback' ),
		),
		'comment' => array(
			'filter'   => 'get_comment_metadata',
			'callback' => array( $this, 'lazyload_meta_callback' ),
		),
		'blog'    => array(
			'filter'   => 'get_blog_metadata',
			'callback' => array( $this, 'lazyload_meta_callback' ),
		),
	);
}

Changelog

VersionDescription
4.5.0Introduced.

User Contributed Notes

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