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.

Метод класса: WP_Customize_Nav_Menus{}

Хуков нет.


int. Integer.


$WP_Customize_Nav_Menus = new WP_Customize_Nav_Menus();
$WP_Customize_Nav_Menus->intval_base10( $value );
$value(разное) (обязательный)
Number to convert.

Список изменений

С версии 4.3.0 Введена.

Код WP_Customize_Nav_Menus::intval_base10() WP 6.5.5

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