Smush Pro - Optimize unlimite images with Smush Pro Plugin

Smush Pro - Optimize unlimite images with Smush Pro Plugin v3.18.0

No permission to download

NullMaster

Well-known member
Null Master
Trusted Uploader
Jul 25, 2018
12,058
22,063
120
Now the CDN can be deactivate. But when activate, same issue as the previous version with some images with 0.0.0.0 url....
In this version, they said that the CDN problem will be solved. there is no such thing.
 

TIKTIK

Member
Feb 1, 2020
57
17
8
@NullMaster
Where can I put the above code? Is it put in functions.php?
if i understand @NullMaster , you need to change your upload folder :

1. move your uploads folder ( locate in> .. /wp-content/uploads/ ) to new locations under your main folder
( that it will be as : https://yourdomain.com/uploads )

2. rename uploads folder to media

3. add the snippet to your functions.php ( without the * )

* add_filter(
* 'smush_cdn_custom_uploads_dir',
* function( $uploads ) {
* $uploads['baseurl'] = 'https://example.com/media';
* return $uploads;
* }
* );
*/


@NullMaster kindly approve those steps
 

juju

Active member
Jun 15, 2019
253
178
43
if i understand @NullMaster , you need to change your upload folder :

1. move your uploads folder ( locate in> .. /wp-content/uploads/ ) to new locations under your main folder
( that it will be as : https://yourdomain.com/uploads )

2. rename uploads folder to media

3. add the snippet to your functions.php ( without the * )

* add_filter(
* 'smush_cdn_custom_uploads_dir',
* function( $uploads ) {
* $uploads['baseurl'] = 'https://example.com/media';
* return $uploads;
* }
* );
*/


@NullMaster kindly approve those steps
Thanks to @TIKTIK
Have you successfully tried the above steps?
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu