WP_Super_Cache_Rest_Get_Settings::make_array_bool()publicWPSCache 1.0

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

No Hooks.

Return

null. Nothing.

Usage

$WP_Super_Cache_Rest_Get_Settings = new WP_Super_Cache_Rest_Get_Settings();
$WP_Super_Cache_Rest_Get_Settings->make_array_bool( $value, $key );
$value(mixed) (required) (passed by reference — &)
-
$key(string) (required)
-

Code of WP_Super_Cache_Rest_Get_Settings::make_array_bool() WPSCache 1.8

public function make_array_bool( &$value, $key ) {
	if ( $value == 0 || $value == 1 ) {
		$value = (bool) $value;
	}
}