wp/wp-includes/class-wp-metadata-lazyloader.php
changeset 9 177826044cd9
parent 7 cf61fcea0001
child 16 a86126ab1dd4
equal deleted inserted replaced
8:c7c34916027a 9:177826044cd9
    50 	 *
    50 	 *
    51 	 * @since 4.5.0
    51 	 * @since 4.5.0
    52 	 */
    52 	 */
    53 	public function __construct() {
    53 	public function __construct() {
    54 		$this->settings = array(
    54 		$this->settings = array(
    55 			'term' => array(
    55 			'term'    => array(
    56 				'filter'   => 'get_term_metadata',
    56 				'filter'   => 'get_term_metadata',
    57 				'callback' => array( $this, 'lazyload_term_meta' ),
    57 				'callback' => array( $this, 'lazyload_term_meta' ),
    58 			),
    58 			),
    59 			'comment' => array(
    59 			'comment' => array(
    60 				'filter'   => 'get_comment_metadata',
    60 				'filter'   => 'get_comment_metadata',
    95 		/**
    95 		/**
    96 		 * Fires after objects are added to the metadata lazy-load queue.
    96 		 * Fires after objects are added to the metadata lazy-load queue.
    97 		 *
    97 		 *
    98 		 * @since 4.5.0
    98 		 * @since 4.5.0
    99 		 *
    99 		 *
   100 		 * @param array                  $object_ids  Object IDs.
   100 		 * @param array                  $object_ids  Array of object IDs.
   101 		 * @param string                 $object_type Type of object being queued.
   101 		 * @param string                 $object_type Type of object being queued.
   102 		 * @param WP_Metadata_Lazyloader $lazyloader  The lazy-loader object.
   102 		 * @param WP_Metadata_Lazyloader $lazyloader  The lazy-loader object.
   103 		 */
   103 		 */
   104 		do_action( 'metadata_lazyloader_queued_objects', $object_ids, $object_type, $this );
   104 		do_action( 'metadata_lazyloader_queued_objects', $object_ids, $object_type, $this );
   105 	}
   105 	}