Jump to content
Willem-Siebe Spoelstra

Change pluginrule with functions.php?

Recommended Posts

Willem-Siebe Spoelstra

Hi!

 

I use Smush.it for my website. 

 

The plugin has a file wp-smushit/wp-smushit.php. I want to change this rule:

 

 $response = wp_remote_get($req, array('user-agent' => WP_SMUSHIT_UA, 'timeout' => 20));

 

 

to:

 

$response = wp_remote_get($req, array('user-agent' => WP_SMUSHIT_UA, 'timeout' => 180));

 

But I don't want to change the core file from the plugin, because I loose this when updating this plugin.

 

Is there a possibility to do this with function.php from Pagelines Customize plugin?

 

Kind regards,

 

Willem


I write about internet marketing, WordPress and Pagelines on my Dutch blog spoelstra.ws

Share this post


Link to post
Share on other sites
Danny

Hi Willem,

 

The functions.php file is the same as a child theme, therefore it will support overriding a plugins code, but the plugin will need to have filters for you to hook into. Therefore, I recommend you contact the plugins author for assistance.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Willem-Siebe Spoelstra

Thank you!


I write about internet marketing, WordPress and Pagelines on my Dutch blog spoelstra.ws

Share this post


Link to post
Share on other sites
Danny

No problem, happy to help.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×