'no', 'show-signup' => 'true', 'show-reset-password' => 'true', 'business_box_id' => $args['business_box_id'] ?? null, 'attributes' => [], ), $args ); if ($args['attributes']) { add_filter('fluent_support/customer_portal_vars', function ($vars) use($args) { $vars['attributes'] = $args['attributes']; return $vars; }); } if($args['show_logout'] == 'yes') { add_filter('fluent_support/customer_portal_vars', function ($vars) { $vars['show_logout'] = true; return $vars; }); } if($args['business_box_id']) { add_filter('fluent_support/customer_portal_vars', function ($vars) use($args) { $vars['mailbox_id'] = wp_strip_all_tags($args['business_box_id']); return $vars; }); } return (new CustomerPortalHandler)->renderPortal($args); } }