Skip to content

Instantly share code, notes, and snippets.

@aimahdi
Created November 13, 2025 11:07
Show Gist options
  • Select an option

  • Save aimahdi/8cd61d59b87accd34573a4a965096eb6 to your computer and use it in GitHub Desktop.

Select an option

Save aimahdi/8cd61d59b87accd34573a4a965096eb6 to your computer and use it in GitHub Desktop.
<?php
add_filter('fluent_cart/product/buy_now_button_text', function($text, $data){
$text = 'Purchase Now';
return $text;
}, 10, 2);
add_filter('fluent_cart/product/add_to_cart_text', function($text, $data){
$text = 'Add to your shopping';
return $text;
}, 10, 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment