_registry->get( 'model.api.api-registration' ); if ( true === isset($_POST['ai1ec_signout']) && '1' === $_POST['ai1ec_signout'] ) { $api->signout(); } else { if ( '1' === $_POST['ai1ec_signing'] ) { $api->signup(); } else { $api->signin(); } } return array( 'url' => ai1ec_admin_url( 'edit.php?post_type=ai1ec_event&page=all-in-one-event-calendar-settings' ), 'query_args' => array( 'message' => '' ), ); } }