If the integer should be a positive number, you can use absint()
. See: https://codex.wordpress.org/Function_Reference/absint
If the integer should be a positive number, you can use absint()
. See: https://codex.wordpress.org/Function_Reference/absint