Documentation

ActionScheduler_Compatibility
in package

Class ActionScheduler_Compatibility

Table of Contents

convert_hr_to_bytes()  : int
Converts a shorthand byte value to an integer byte value.
raise_memory_limit()  : bool|int|string
Attempts to raise the PHP memory limit for memory intensive processes.
raise_time_limit()  : mixed
Attempts to raise the PHP timeout for time intensive processes.

Methods

convert_hr_to_bytes()

Converts a shorthand byte value to an integer byte value.

public static convert_hr_to_bytes(string $value) : int

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

Parameters
$value : string

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

Tags
link
https://secure.php.net/manual/en/function.ini-get.php
link
https://secure.php.net/manual/en/faq.using.php#faq.using.shorthandbytes
Return values
int

An integer byte value.

raise_memory_limit()

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

public static raise_memory_limit() : bool|int|string

Only allows raising the existing limit and prevents lowering it.

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

Return values
bool|int|string

The limit that was set or false on failure.

raise_time_limit()

Attempts to raise the PHP timeout for time intensive processes.

public static raise_time_limit(mixed $limit) : mixed

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

Parameters
$limit : mixed
Return values
mixed

Search results