Astra_Customizer_Sanitizes::sanitize_font_weight( mixed $input )
Sanitize Font weight
Description
Parameters
- $input
-
(mixed) (Required) setting input.
Return
(mixed) setting input value.
Source
File: inc/customizer/class-astra-customizer-sanitizes.php
public static function sanitize_font_weight( $input ) { $valid = array( 'normal', 'bold', '100', '200', '300', '400', '500', '600', '700', '800', '900', ); if ( in_array( $input, $valid ) ) { return $input; } else { return 'normal'; } }
Expand full source code Collapse full source code View on Trac