[WAUM] Link View Insights to Template Insights in WhatsApp Manager#3061
Merged
woo-ardsouza merged 2 commits intoWAUM-devfrom May 1, 2025
Merged
[WAUM] Link View Insights to Template Insights in WhatsApp Manager#3061woo-ardsouza merged 2 commits intoWAUM-devfrom
woo-ardsouza merged 2 commits intoWAUM-devfrom
Conversation
sharunaanandraj
approved these changes
Apr 16, 2025
| if ( ! check_ajax_referer( 'facebook-for-wc-whatsapp-billing-nonce', 'nonce', false ) ) { | ||
| public function wc_facebook_whatsapp_fetch_url_info() { | ||
| facebook_for_woocommerce()->log( 'Fetching url info for whatsapp pages' ); | ||
| if ( ! check_ajax_referer( 'facebook-for-wc-whatsapp-billing-nonce', 'nonce', false ) && ! check_ajax_referer( 'facebook-for-wc-whatsapp-templates-nonce', 'nonce', false ) ) { |
Contributor
There was a problem hiding this comment.
Suggested change
| if ( ! check_ajax_referer( 'facebook-for-wc-whatsapp-billing-nonce', 'nonce', false ) && ! check_ajax_referer( 'facebook-for-wc-whatsapp-templates-nonce', 'nonce', false ) ) { | |
| if ( ! (check_ajax_referer( 'facebook-for-wc-whatsapp-billing-nonce', 'nonce', false ) || check_ajax_referer( 'facebook-for-wc-whatsapp-templates-nonce', 'nonce', false ) ) ) { |
iodic
approved these changes
Apr 25, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Using the waba and business ID info stored in DB to direct the user to the WhatsApp Manager template insights when View Insights link is clicked. Also updated the billing url to reuse the same action
Type of change
Changelog entry
Update View Insights to link to template insights in WhatsApp Manager
Test Plan
Clicking on the View Insights link in the Utility Messsage Overview view opens the template insights in WhatsApp Manager and Clicking on add payment button opens the billing hub for the whatsapp business account like PR 3032
Screen Recordings
Utility Messsage Onboarding
Clicking on add payment button opens the billing hub
Screen.Recording.2025-04-15.at.6.48.25.PM.mov
Utility Messsage Overview
Clicking on view insights opens WhatsApp Manager template insights
Screen.Recording.2025-04-15.at.9.36.07.AM.mov