WP_Customize_Nav_Menus::intval_base10( mixed $value ): int

Gets the base10 intval.

Description

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.

Parameters

$valuemixedrequired
Number to convert.

Return

int Integer.

Source

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

Changelog

VersionDescription
4.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.