{$context}_memory_limit

{$context}_memory_limit

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('{$context}_memory_limit') is found 1 times:

  • /wp-includes/functions.php line 7877
    7873
    7874
    7875
    7876
    7877
    7878
    7879
    7880
    7881
    7882
    7883
             *                                   Default WP_MAX_MEMORY_LIMIT` or the original php.ini `memory_limit`,
             *                                   whichever is higher. Accepts an integer (bytes), or a
             *                                   shorthand string notation, such as '256M'.
             */
            $filtered_limit = apply_filters( "{$context}_memory_limit", $filtered_limit );
            break;
    }
     
    $filtered_limit_int = wp_convert_hr_to_bytes( $filtered_limit );
     
    if ( -1 === $filtered_limit_int || ( $filtered_limit_int > $wp_max_limit_int && $filtered_limit_int > $current_limit_int ) ) {