After searching for about 2 days I was able to figure out a way to capture the user after signup process is completed and the user’s payment goes through the payment gateway, the way I’m doing it right now is when a signup process is completed user is redirected to thank-you page and a querystring containing subscr_id is passed on that page and I’m capturing that subscr_id and fetching the user from the database manually and its working perfectly fine, the process is seamless, and I can use the data on my other page templates as well.
You can simply get subscr_id from $_GET[‘subscr_id’] and use that to capture the user associated with this subscription from the table ‘wp_mepr_subscriptions’ and then use the user id to fetch the user detail from ‘wp_usermeta’ table of the wordpress, hope it helps someone else 🙂
Related Posts:
- REST-API: extend media-endpoint
- Custom API plugin to execute 3rd party API to retrieve data
- Creating one user access account for all the multiple sites
- Looking for membership style plugin with edit option [closed]
- Best collection of code for your 'functions.php' file [closed]
- Best way to initiate a class in a WP plugin?
- Should all plugins be encapsulated in a Class?
- How can I delete orphan keys in WordPress database tables?
- Is it a good idea to edit an already existing plugin to add more functionality?
- OpenID for WordPress 3.x? [duplicate]
- Get a button for in the Editor
- Membership / subscription plugins – alternatives [closed]
- How to create gutenberg block using REST API independently or as headless way?
- Reduce nonce lifespan
- Add Products to user’s ID Woocommerce
- Image Crop/Resize Function/Code Sinppet/Plugin to adjust/crop images during upload
- WP get_permalink Return Wrong URL
- WP Plugin for Terms of Use
- How to add product images using script?
- Woocommerce: Changing the variations select default value? [closed]
- Automagic Link Shortening for Non-Hosted WP
- Setting up widgets in wordpress with a unique ID for the after_title argument
- Akismet plugin is deleting spam despite preferences
- MailChimp integration that allows users to select from multiple lists [closed]
- Distributing and packaging plugins
- Use plugin or custom post type for game score functionality
- How to Replace Words with Hypertext Link But Ignore Previously Existed Links?
- How to add rewrite rules and pagination to retrieve attachments files?
- Copyright messages for a particular set of pages
- how to load the language file in plugin?
- I am getting error message on accessing menu-endpoint
- Detect permalinks when passing querystring in REST API requests
- Input with spaces in Shortcode attributes overwritten by defaults
- Add a custom form on the post-new.php admin page
- Edit Yoast SEO breadcrumbs output [closed]
- Do widget options need to be escaped widget()?
- Is there any W3C compatible Share & Follow plugin?
- className not populating in custom block
- Customization API for plugin development
- Fromcraft Plugin On click submit button [closed]
- How to redirect users to their profile after they successfully edit their profile
- Getting Theme element into plugins page editor in wp admin
- GeoMashup plugin: how to customize cluster markers / icons? [closed]
- Access WP_REST_Server from within plugin namespace
- Paid Membership Pro with ACF [closed]
- Basic gallery plugin suggestion [closed]
- Free paypal cart solution [closed]
- Which plugin can do horizontal scrolling of RSS feeds in WordPress [closed]
- How to integrate together a website currently hosted WordPress.com and a custom web application currently hosted on Azure?
- I am trying to make a field show and save from quickedit screen
- Hide a certain category name from Related Posts
- how to add custom info on author page? plugin, child theme?
- WordPress /users/me endpoint request forbidden
- How to handle a WordPress blog with articles in different languages?
- display unique post per category
- Widget where it can make changes to the container
- Can’t create new CPTs when menu hidden
- Gathering all Custom Post Type posts in to array/object the proper way
- Multiple Post Thumbnails Plugin – Need help with code
- Custom Post Type, Custom Columns List
- How to prevent plugin, theme installation failures on WordPress?
- WordPress search input in database, to edit information via form and update the database
- Adding category base to url in custom post giving 404?
- Custom fields not showing up in the user info (PaidMembershipsPro)
- Post source link plugin – small modification
- Can we hide a certain user in WP?
- How Can I Increase Breadcrumb Position Count (Starting From 2)?
- Getting all woocommerce products from REST API call in plugin
- CRUD from WordPress to Business Central 365 through OData REST API
- WP Rest Api GET method restriction on route, but POST method also works
- Load my Inline js footer area
- How to get data from a private API and add it to wordpress pages
- Move plugin upload folder from mywebsite.com/wp-content/uploads/pdfuploads to mywebsite.com/pdfs?
- Woocommerce list variations that are added already to cart in Single Product
- Flexslider empty slide
- How to fix slow comment query?
- Share on social media created listing after submission
- Translation plugin with default language?
- Sending post data over REST API, how to parse shortcodes in post_content?
- Best approach to serve static content within a regular page
- Custom pages with plugin
- WP plugin calls for custom pages
- Changing the body of mail sent to new user registration
- Which One Is Better For Managing Add Ons For Extensible Plugin?
- Multiselect value in wp_query
- get_var result empty for query of custom table in plugin admin
- Posts are deleted everyday at night
- WordPress Code Access to Restricted Content without Registration
- What can I do to customize a widget provided with this plugin? from where have I to start?
- how to know that a wordpress plugin support using API?
- How to pre-set WordPress settings for specific posts?
- How can I send api calls from my plugin?
- Create Custom Coupon Type
- Social login authentication via wordpress rest api
- Is website for online game guides doable in WordPress? [closed]
- Is option_active_plugins actually doing anything useful?
- Is it possible to create post in wordpress using postman?
- Using ACF to allow user to add and edit multiple saved forms
- Block Root REST API Route using custom &/or iThemes
- Accessing Correct Database to Create REST API Endpoint