While plugin active possible to get original images?

[ad_1]

Hi @lebac,

Thank you for your message.

You can achieve the desired effect by using filters provided in plugins. I have prepared such a filter for you:

add_filter( 'webpc_htaccess_mod_rewrite', function ( $rules ) {
	return preg_replace(
		'/(RewriteCond %{HTTP_ACCEPT} image\/(?:[a-z]+))/',
		'$1' . PHP_EOL . '  RewriteCond %{QUERY_STRING} !(^|&)' . 'load-original' . ' [NC]',
		$rules
	);
} );

Please add this to the functions.php file in your theme directory and save the plugin settings again. To display an image in its original format, add the following suffix to the URL: ?load-original.

Does this solve your problem?

Best, Mateusz

Thread Starter
lebac

(@lebac)

Thank you for quick response!

Script works great!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer