Disable SRC set

0.0/5
<?php
function wpd_disable_srcset( $sources ) {
    return false;
}
 
add_filter( 'wp_calculate_image_srcset', 'wpd_disable_srcset' );

Comments and reviews

{{ reviewsTotal }} Review
{{ reviewsTotal }} Reviews
{{ options.labels.newReviewButton }}
{{ userData.canReview.message }}

Description

This snippet disables the srcset for images

Author

Tags

This snippet is untagged