Skip to content

Opting in via set_status does not register the site #109

@TimothyBJacobs

Description

@TimothyBJacobs

The docs advise creating a settings screen that toggles a site's optin status via Status::set_status().

https://github.com/stellarwp/telemetry#saving-opt-in-status-on-a-settings-page

In order to send data to the telemetry server a token value is required. This is only generated if the user opts in via the optin modal. If they skip in the initial modal, but then try to enable it via a setting, no data will be sent to the Telemetry server.

I'm not sure if this is a docs issue, and it is expected for plugins to call Opt_In_Subscriber::opt_in ourselves manually. To me, it seems like that should happen automatically.

I'm happy to create a PR, but need a bit of direction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions