pre_wp_get_loading_optimization_attributes

pre_wp_get_loading_optimization_attributes

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('pre_wp_get_loading_optimization_attributes') is found 1 times:

  • /wp-includes/media.php line 5942
    	 * @param string      $tag_name      The tag name.
    	 * @param array       $attr          Array of the attributes for the tag.
    	 * @param string      $context       Context for the element for which the loading optimization attribute is requested.
    	 */
    	$loading_attrs = apply_filters( 'pre_wp_get_loading_optimization_attributes', false, $tag_name, $attr, $context );
    
    	if ( is_array( $loading_attrs ) ) {
    		return $loading_attrs;
    	}
    
    	$loading_attrs = array();