y >= 18; } function kompass_get_age(string $birthday) : int { $obj_birthday = \DateTime::createFromFormat('Y-m-d', $birthday); $today = new DateTime(); $compare = date_diff($today, $obj_birthday); return $compare->y; } function bdp_kompass_load_ajax_content() { $class = 'Bdp\\Modules\\' . $_REQUEST['module'] . '\\Controllers\\AjaxRouterController'; if (!class_exists($class)) { wp_die('Invalid module call: Module=' . $_REQUEST['module']); } new $class(); exit; } $loginHandler = new LoginHandler(); new BdpVersionChecker(); #add_filter( 'plugins_api', array( $class, 'info' ), 20, 3 ); require_once dirname(__FILE__) . '/action_caller.php';