admin_memory_limit filter-hookWC 1.0

This is a WordPress - admin_memory_limit hook. The plugin just uses it.

Filters the maximum memory limit available for administration screens.

Usage

add_filter( 'admin_memory_limit', 'wp_kama_admin_memory_limit_filter' );

/**
 * Function for `admin_memory_limit` filter-hook.
 * 
 * @param int|string $filtered_limit The maximum WordPress memory limit. Accepts an integer (bytes), or a shorthand string notation, such as '256M'.
 *
 * @return int|string
 */
function wp_kama_admin_memory_limit_filter( $filtered_limit ){

	// filter...
	return $filtered_limit;
}
$filtered_limit(int|string)
The maximum WordPress memory limit. Accepts an integer (bytes), or a shorthand string notation, such as '256M'.

Where the hook is called

ActionScheduler_Compatibility::raise_memory_limit()
admin_memory_limit
woocommerce/packages/action-scheduler/classes/ActionScheduler_Compatibility.php 61
$filtered_limit     = apply_filters( 'admin_memory_limit', $wp_max_limit );

Where the hook is used in WooCommerce

Usage not found.