WP_Metadata_Lazyloader::__construct()publicWP 4.5.0

Constructor.

Method of the class: WP_Metadata_Lazyloader{}

No Hooks.

Return

null. Nothing.

Usage

$WP_Metadata_Lazyloader = new WP_Metadata_Lazyloader();
$WP_Metadata_Lazyloader->__construct();

Changelog

Since 4.5.0 Introduced.

WP_Metadata_Lazyloader::__construct() code WP 6.1.1

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