Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FRAME-170]: Add functionality to pass opt_in_text to opt-in #86

Merged
merged 6 commits into from
Oct 3, 2023

Conversation

tarecord
Copy link
Contributor

This adds the opt_in_text and properly passes that along in the opt-in request to support https://github.com/stellarwp/telemetry-server/pull/72

@tarecord tarecord self-assigned this Sep 26, 2023
We need a way to get the opt-in-text without needing to query through
the list of active plugins so we can send the text with the user
registration.

$args = [
'name' => $user->display_name,
'email' => $user->user_email,
'plugin_slug' => $stellar_slug,
'opt_in_text' => $template->get_intro( $user->display_name, $stellar_slug ),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we allow the plugins to filter this value? Is there a chance that we will be pushing a different value than what they approved if that is the case?

@tarecord tarecord requested a review from ChrisMKindred October 2, 2023 15:00
Copy link
Contributor

@ChrisMKindred ChrisMKindred left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks much cleaner. 🌮

@tarecord tarecord merged commit 72bf74e into develop Oct 3, 2023
10 checks passed
@tarecord tarecord deleted the feature/send-opt-in-text branch October 3, 2023 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants