This one works for me:
add_action( 'woocommerce_subscription_renewal_payment_complete', 'subscription_renewal_payment_complete', 11, 2 );
function subscription_renewal_payment_complete( $subscription, $order ){
$subscription_id = $subscription->get_id();
$order_id = $order->get_id();
$billing_email = $subscription->get_billing_email();
$next_payment = $subscription->get_date('next_payment', 'site');
}
Related Posts:
- Correct function to get the user’s latest Woocommerce Subscription?
- Limit users to one active subscription in WooCommerce Subscriptions? [closed]
- How do I add a “Cancel” button on the subscriptions listing page [closed]
- WooCommerce Subscriptions: Show monthly Price for annual Product
- Woocommerce Subscription Pricing/Billing Schedule
- WooCommerce subscription, give option to prorate or not to prorate to user while switching subscription
- Subscription on Checkout
- How to subscribe free subscription on user registration in woocommerce subscription plugin?
- How to change a WooCommerce Subscription Deposit and Monthly Payment? [closed]
- Synchronise Renewals on existing subscriptions [closed]
- WooCommerce Subscriptions: Hide one variation subscription
- wp-cron and woocommerce subscriptions killing performance
- Applying pre-production modifications
- How to send welcome email once user buys the subscription
- How to apply a custom coupon to a WooCommerce Subscription recurring amount?
- How Do I Access Parameters Emitted by an Action?
- How to disable the “Upgrade or Downgrade” button in “My account” of WooCommerce Subscriptions
- Edit woocommerce subscription email
- Membership website with discount on scheduled appointment
- How do I remove the recurring total from thank you for your order email?
- Question about WooCommerce Subscription
- I want to update shipping charge $0 for all Woocommeerce Subscription auto-renewal orders
- How to get current product category ID in product archive page
- WooCommerce prices location in DB
- WP/WooCommerce REST API cart/checkout/order [closed]
- Hide Add to Cart Button
- Why do Woocommerce templates use hooks rather than get_template_part
- Display WooCommerce only in stock sizes product attribute on shop page
- Remove “Choose An Option” on Product Variation & Auto Select Instead
- check if current url/page equals checkout page [closed]
- Mini cart in header using divi is not getting updated on changing the cart items count:
- How to stop a Gutenberg Block from firing multiple GET Requests?
- Woocommerce Product Price Inserted programmatically doesn’t get displayed In Single Product Page
- How to Order by random on a SQL query
- Move add to cart in Woocommerce
- Separate Categories from WC Product loop when display type is set to both on the category
- Hide “Delete Note” link in Order Notes Panel
- Exclude products with a stock lower than the low stock threshold from the shop loop [closed]
- Remove Order List Row Link in WooCommerce Admin?
- How do I hide out of stock products from homepage but not from catalog?
- wp_customize – detect post type to show/hide customizer options
- WooCommerce – Display nested list of all subcategories on archive-product.php
- How to delete 1000s of duplicated images in WordPress?
- WooCommerce product archive url without value / all values
- how to get jetpack’s infinite scroll to work with woocommerce?
- WooCommerce orderby template disappears and not longer works on search page
- Woocommerce variations as a list [closed]
- Sort & Display WooCommerce Product Attributes by Order
- wp_set_object_terms being undone
- How do I update every title of a certain category with a phrase
- Change max number of products on shop pages
- WooCommerce: One term for Many Product Attributes
- How to search variable product by its variation id in woocommerce admin product search box?
- How to dequeue script on woocommerce product?
- Hide inventory message on product page based on available stock quantity
- Different Templates for Woocommerce Parent and Child Sub Categories
- Else: Show Message Outside of Product Loop
- Clients with empty username are not receiving request new password email
- how can i add an additional action into woocommerce admin order page through my plugin?
- Woocommerce changing add to cart button text as icon [closed]
- Display data when category is empty
- Disable woocommerce PLACE ORDER button if user selected products that are not available for international delivery
- Remove sale signs from site in branded? [closed]
- Create a regular post for every WooCommerce order
- Use woocmmerce function on theme and override them
- Hooks For Design variation in woo commerce single product page
- Dokan stock management
- How to hide order action button after changing order status to completed
- Access custom meta_data in processing order email
- Woocommerce : How to automatically input the same email for every order?
- Deregister dequeue JS scripts except on 1 product page
- Woocommerce – how to round up all prices to end in .99
- Woocommerce Rest API: woocommerce_product_invalid_image_id
- How do I disable “Flat Rate” radio button and remain with other shipping method in woocommerce
- How to add woocommerce product price filter widget to other page
- Remove Stripe Woocommerce Credit Card Icons (and replace with image)
- How to add external product url to woocommerce from a metadata by function.php
- Unable to call woocommerce hook in my custom php file
- Two types of product categories on shop page
- How to send an automatic email to a custom field in Woocommerce order meta 2 weeks after a product is bought
- Woocommerce cart table too wide [closed]
- Make Woocommerce breadcrumbs show up using functions.php file
- Alter the cost of products using phpmyadmin sql query
- How does one allow any customer to process any order in store on woocommerce?
- WooCommerce CSV Image URL Creates Additional Images in Media Folder
- Custom changes performed on WP + WooCom site on maintenance subdomain. How to perform a migration to a main domain?
- Woocommerce Child Category Permalink Structure Change
- Allow customer to choose an optional free/paid product to add to their order (and reduce stock reduced & record sale)
- How to restrict type/size of file uploads in any plugin?
- In woocommerce some products have empty options, but how to check this
- Stop the “upload file size” error from printing [closed]
- WooCommerce – Inconsistent Indexing of Orders
- Woocommerce Add to Cart function
- WooCommerce – doesn’t show product when using woocommerce.php [closed]
- How to show woocommerce login / registration form in modal
- registration_errors not working
- I want to Display custom woocomerce meta box in orders list
- Detect Product Type with code
- Verify if woocommerce supports this design [closed]
- Hook for Woocommerce checkout fields