This file contains 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
<?php | |
add_filter('mepr_stripe_create_customer_args', function ($args, $usr) { | |
$args['metadata']['language'] = 'French'; | |
return $args; | |
}, 10, 2); |
This file contains 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
add_filter('mepr_stripe_statement_descriptor', function($descriptor, $product) { | |
return 'Custom Descriptor'; | |
}, 10, 2); |
This file contains 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
<?php | |
/* | |
* Plugin Name: Pretty Links Debugging | |
* Description: Debugging plugin for Pretty Links. | |
*/ | |
add_filter('posts_results', function ($posts, $query) { | |
if (is_admin() && class_exists('PrliUtils') && isset($query->query['post_type']) && $query->query['post_type'] == 'pretty-link') { | |
ob_start(); |