wc_set_time_limit()
Wrapper for set_time_limit to see if it is enabled.
No Hooks.
Return
null
. Nothing (null).
Usage
wc_set_time_limit( $limit );
- $limit(int)
- Time limit.
Changelog
Since 2.6.0 | Introduced. |
wc_set_time_limit() wc set time limit code WC 9.8.1
function wc_set_time_limit( $limit = 0 ) { if ( function_exists( 'set_time_limit' ) && false === strpos( ini_get( 'disable_functions' ), 'set_time_limit' ) && ! ini_get( 'safe_mode' ) ) { // phpcs:ignore PHPCompatibility.IniDirectives.RemovedIniDirectives.safe_modeDeprecatedRemoved @set_time_limit( $limit ); // @codingStandardsIgnoreLine } }