I tried to add settings in the Customizer that are numbers with decimal point (period) and sanitize will fail or NULL my value, any function in WordPress to sanitize for decimal numbers and not only basic integers
If you are using absint than you must stop using that because it will reject any number that is negative or decimal range
absint
@OP you need to write your own sanitize function for float numbers then:
https://wordpress.stackexchange.com/questions/225825/customizer-sanitize-callback-for-input-type-number
function sanitize_float( $input ) { return filter_var($input, FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION); }
this guy also failed from cause of absint
https://wordpress.stackexchange.com/questions/311152/customizer-how-to-sanitize-a-decimal-number-range
seems PHP needs to have more options for sanitize functions.
even WP is limited options.
I learned something new today!
Enter the destination URL
Or link to existing content