WP_Customize_Nav_Menus::intval_base10()publicWP 4.3.0

Gets the base10 intval.

This is used as a setting's sanitize_callback; we can't use just plain intval because the second argument is not what intval() expects.

Method of the class: WP_Customize_Nav_Menus{}

No Hooks.

Return

Int. Integer.

Usage

$WP_Customize_Nav_Menus = new WP_Customize_Nav_Menus();
$WP_Customize_Nav_Menus->intval_base10( $value );
$value(mixed) (required)
Number to convert.

Changelog

Since 4.3.0 Introduced.

WP_Customize_Nav_Menus::intval_base10() code WP 6.5.2

public function intval_base10( $value ) {
	return intval( $value, 10 );
}