Skip to content

Instantly share code, notes, and snippets.

@butlerblog
Last active June 9, 2016 17:18
Show Gist options
  • Save butlerblog/ce3581720073dd7b4e24d14886e80541 to your computer and use it in GitHub Desktop.
Save butlerblog/ce3581720073dd7b4e24d14886e80541 to your computer and use it in GitHub Desktop.
Sets WP-Members PayPal Module log file to verbose output.
<?php
$defaults = array(
'paypal_live' => 0,
'ipn_debug' => 0,
'paypal_id' => '',
'show_button' => 1
);
// $defaults does not include 'verbose_log' by default
<?php
/*
* This script is for the WP-Members PayPal Subscription extension
* which is avialable to subscribers of the WP-Members premium
* support site http://rocketgeek.com
*/
// Add below this line to functions.php
add_filter( 'wpmem_exp_ipn_defaults', function($args){
$args['verbose_log'] = true;
return $args;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment