admin_memory_limit
Это хук WordPress - admin_memory_limit. Плагин его просто использует.
Filters the maximum memory limit available for administration screens.
Использование
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|строка)
- The maximum WordPress memory limit. Accepts an integer (bytes), or a shorthand string notation, such as '256M'.
Где вызывается хук
admin_memory_limit
woocommerce/packages/action-scheduler/classes/ActionScheduler_Compatibility.php 61
$filtered_limit = apply_filters( 'admin_memory_limit', $wp_max_limit );