Created
November 13, 2011 19:58
-
-
Save tollmanz/1362592 to your computer and use it in GitHub Desktop.
Increase WordPress Exporter Script Execution Time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run function only when the export is initiated | |
add_action( 'export_wp', 'zdt_unlimited_script_time' ); | |
/** | |
* Sets script execution time to unlimited. | |
* | |
* @return void | |
*/ | |
function zdt_unlimited_script_time() { | |
set_time_limit( 0 ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment