Home / Admin / WP Simple Pay: Provide Fallback Value for Customer Name Template Tag if Left Empty
Duplicate Snippet

Embed Snippet on Your Site

WP Simple Pay: Provide Fallback Value for Customer Name Template Tag if Left Empty

Code Preview
php
<?php
add_filter(
	'simpay_payment_confirmation_template_tag_customer-name',
	function( $value ) {
		if ( '' === $value ) {
		  return 'Donor';
		}
		return $value;
	}
);

Comments

Add a Comment