absint()
WordPress function that converts a value to a non-negative integer, combining abs() and intval().
How it works
WordPress function that converts a value to a non-negative integer, combining abs() and intval().
In WordPress
Use absint() for any numeric input like post IDs, page numbers, or quantity fields.
Related terms
WP HealthKit checks for absint()-related vulnerabilities automatically
Run a Free Audit