\ActionScheduler_Compatibility

Class ActionScheduler_Compatibility

Summary

Methods
Properties
Constants
convert_hr_to_bytes()
raise_memory_limit()
raise_time_limit()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

convert_hr_to_bytes()

convert_hr_to_bytes(string  $value) : int

Converts a shorthand byte value to an integer byte value.

Wrapper for wp_convert_hr_to_bytes(), moved to load.php in WordPress 4.6 from media.php

Parameters

string $value

A (PHP ini) byte value, either shorthand or ordinary.

Returns

int —

An integer byte value.

raise_memory_limit()

raise_memory_limit() : bool|int|string

Attempts to raise the PHP memory limit for memory intensive processes.

Only allows raising the existing limit and prevents lowering it.

Wrapper for wp_raise_memory_limit(), added in WordPress v4.6.0

Returns

bool|int|string —

The limit that was set or false on failure.

raise_time_limit()

raise_time_limit(int  $limit) : mixed

Attempts to raise the PHP timeout for time intensive processes.

Only allows raising the existing limit and prevents lowering it. Wrapper for wc_set_time_limit(), when available.

Parameters

int $limit

The time limit in seconds.

Returns

mixed