Resolve WooCommerce PayPal return link title problem

/*Resolve WooCommerce PayPal return link title problem*/
add_filter( 'woocommerce_paypal_args', 'woocommerce_paypal_args_repair');
function woocommerce_paypal_args_repair( $paypal_args ) {
if (!array_key_exists('cbt',$paypal_args))
{
$paypal_args['cbt'] = get_option( 'blogname' );
}
return $paypal_args;
}

max

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>