wc_set_time_limit()WC 2.6.0

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() code WC 8.6.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
	}
}