an easy way to sanitize and preset a numeric POST-value
get_posts() returns the value or even 'null' if argument is missing
intval() castes any not numeric value, 'null' and '0' also into (int)0.
the ternary operator makes sure that '1' only results in a (int)1 and any other value results in (int)0
<?php
$aggregate_hidden = ((intval($wb->get_post('aggregate_hidden')) === 1)) ? 1 : 0;
?>
(instead of $wb-> you can use $admin-> for backend also)
It's normal PHP nothing special from 2.8.2