-
Notifications
You must be signed in to change notification settings - Fork 49
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
feat: add RAS CLI commands #2666
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests well!
Non-blocking suggestion: this file is almost at 2k lines. WDYT of moving the CLI methods to a includes/reader-activation/class-cli.php
file?
Good call—I ended up moving the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌
# [2.8.0-alpha.1](v2.7.1...v2.8.0-alpha.1) (2023-09-28) ### Bug Fixes * **woocommerce:** hook for rendering UTM inputs ([#2671](#2671)) ([634f7bf](634f7bf)) ### Features * add RAS CLI commands ([#2666](#2666)) ([5afc049](5afc049)) * remove unused GA code ([#2664](#2664)) ([1fa99fa](1fa99fa)) * search credit metadata on media library ([#2594](#2594)) ([c33c5b2](c33c5b2)) * **woocommerce:** store UTM parameters as order meta ([#2665](#2665)) ([39dfc31](39dfc31))
🎉 This PR is included in version 2.8.0-alpha.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
# [2.8.0](v2.7.5...v2.8.0) (2023-10-09) ### Bug Fixes * inline documentation for `Donations::get_donation_settings()` ([#2675](#2675)) ([c6c7916](c6c7916)) * **woocommerce:** check method exists before syncing reader ([#2673](#2673)) ([063509c](063509c)) * **woocommerce:** hook for rendering UTM inputs ([#2671](#2671)) ([634f7bf](634f7bf)) ### Features * add RAS CLI commands ([#2666](#2666)) ([5afc049](5afc049)) * **campaigns:** newsletter subscription list criteria ([#2658](#2658)) ([69c8f88](69c8f88)) * remove unused GA code ([#2664](#2664)) ([1fa99fa](1fa99fa)) * search credit metadata on media library ([#2594](#2594)) ([c33c5b2](c33c5b2)) * **woocommerce:** store UTM parameters as order meta ([#2665](#2665)) ([39dfc31](39dfc31))
🎉 This PR is included in version 2.8.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
All Submissions:
Changes proposed in this Pull Request:
Adds some convenience commands for testing/debugging RAS features.
How to test the changes in this Pull Request:
Setup command
This command lets you bypass the RAS wizard and just create all default prompts + segments and enable RAS account features with a single command. It still requires some pre-setup to connect an ESP and Reader Revenue platform, so we can't quite fully automate and add to the existing
wp newspack setup
command, unfortunately.wp newspack ras setup
. Confirm that it succeeds with a messageSuccess: RAS enabled with default prompts.
. Also confirm that the default RAS segments and prompts have been created in the Campaigns wizard.Verify user command
This command lets you instantly mark any WP user account as verified, bypassing the need to complete the email verification flow to allow access to My Account features.
wp newspack verify-reader <email or user ID>
Other information: