Syntax

absint( mixed $maybeint)

Usage

It used to convert a value into a non-negative integer.
Add this below code in wp-includes/functions.php

function absint( $maybeint ) {
    return abs( intval( $maybeint ) );
}