adding sanitize callback for add setting
This commit is contained in:
parent
a660a7d2f1
commit
44ea2ea03f
|
@ -178,6 +178,7 @@ if ( ! function_exists( 'understrap_theme_customize_register' ) ) {
|
|||
'type' => 'theme_mod',
|
||||
'capability' => 'edit_theme_options',
|
||||
'transport' => 'refresh',
|
||||
'sanitize_callback' => 'absint',
|
||||
) );
|
||||
|
||||
$wp_customize->add_control(
|
||||
|
|
Reference in New Issue