### Customize WooCommerce Subscriptions Appearance and Functionality Source: https://woocommerce.com/documentation/products/extensions/woocommerce-subscriptions/index This section provides code snippets to customize the appearance and functionality of WooCommerce Subscriptions. It is recommended to add these snippets to a separate snippet plugin rather than modifying theme files or the functions.php file. These snippets can be copied directly or downloaded. ```php /** * WooCommerce Subscriptions Snippet Example * * This snippet demonstrates how to add a custom notice to subscription renewal emails. */ add_filter( 'woocommerce_subscriptions_renewal_email_custom_content', 'my_custom_subscription_renewal_notice', 10, 1 ); function my_custom_subscription_renewal_notice( $content ) { $content .= '
' . __( 'Thank you for your continued support! We appreciate your business.', 'your-text-domain' ) . '
'; return $content; } ``` -------------------------------- ### Remove Subscription Action Button (PHP) Source: https://woocommerce.com/documentation/products/extensions/woocommerce-subscriptions/developer-docs/page/2 This snippet demonstrates how to remove an action button from the 'My Account > View Subscriptions' page using the 'wcs_view_subscription_actions' hook in PHP. It allows developers to prevent customers from initiating specific actions on their subscriptions. ```php add_filter( 'wcs_view_subscription_actions', 'my_remove_subscription_action_button' ); function my_remove_subscription_action_button( $actions ) { // Remove 'Change Payment Method' button unset( $actions['change_payment_method'] ); // Uncomment the lines below to also remove other buttons: // unset( $actions['cancel'] ); // unset( $actions['resubscribe'] ); // unset( $actions['reactivate'] ); return $actions; } ``` -------------------------------- ### Stop User Role Changes for Subscriptions (PHP) Source: https://woocommerce.com/documentation/products/extensions/woocommerce-subscriptions/developer-docs/page/2 This PHP code snippet shows how to prevent WooCommerce Subscriptions from automatically changing a user's role when their subscription status changes. This is useful for custom user role implementations or specific logic. ```php add_filter( 'wc_subscriptions_user_role_change_enabled', '__return_false' ); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.