Place max_execution_time in wordpress plugin

I have a client who has a php script execution timeout problem on a locally installed wordpress. I dont have an access to machine to do the test, so here is my question.

There is a custom plugin on that site that has all the php custom code in it. Can I just place:

Read More
ini_set('max_execution_time',0);

on top of plugin file and be sure it will work for entire front and back end?

Related posts

Leave a Reply

1 comment

  1. That setting sets the execution time for the entire execution of your script. You don’t necessarily have to place it on the top of the plugin file, you can set it in a method or function that takes longer to run. Either way, it should be fine.

    Also, check this question.