Skip to content

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

Merged
tarecord merged 6 commits into
developfrom
feature/send-opt-in-text
Oct 3, 2023
Merged

[FRAME-170]: Add functionality to pass opt_in_text to opt-in#86
tarecord merged 6 commits into
developfrom
feature/send-opt-in-text

Conversation

@tarecord
Copy link
Copy Markdown
Member

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.
Comment thread src/Telemetry/Telemetry/Telemetry.php Outdated
'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
Copy Markdown
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
Copy Markdown
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
@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