set_time_limit(600) wp-config code example Example: set time limit in wp-config max_execution_time = 300;