WordPress at Your Fingertips
function is not described

WP_Customize_Nav_Menus::intval_base10() public WP 4.3.0

Get 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.

{} It's a method of the class: WP_Customize_Nav_Menus{}

No Hooks.


Int. Integer.


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

Code of WP_Customize_Nav_Menus::intval_base10() WP 5.8.3

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