Croatië

3 oktober 2019

/** * Set default link type to “file” for image galleries when link isn't set */ add_filter( 'shortcode_atts_gallery', function( $out ){ if( !array_key_exists('link', $out) || empty($out['link']) ) $out['link'] = 'file'; return $out; } );