WP Simple Pay: Custom Smart Tags for Fee Recovery and Subtotal Amounts

/** * Plugin Name: WP Simple Pay – Custom Smart Tags */ add_filter( ‘simpay_payment_details_template_tags’, function( $smart_tags ) { $smart_tags[] = ‘fee-recovery-amount’; $smart_tags[] = ‘pre-fee-amount’; return $smart_tags; } ); add_filter( ‘simpay_payment_confirmation_template_tag_fee-recovery-amount’, function( $value, $payment_confirmation_data ) { $object = current( $payment_confirmation_data[‘paymentintents’] );…Continue reading

Remove duplicate meta description

function remove_hello_elementor_description_meta_tag() { remove_action( ‘wp_head’, ‘hello_elementor_add_description_meta_tag’ ); } add_action( ‘after_setup_theme’, ‘remove_hello_elementor_description_meta_tag’ );Continue reading

Remove duplicate meta description

function remove_hello_elementor_description_meta_tag() { remove_action( ‘wp_head’, ‘hello_elementor_add_description_meta_tag’ ); } add_action( ‘after_setup_theme’, ‘remove_hello_elementor_description_meta_tag’ );Continue reading

WP Simple Pay: Add Yes and No Values to Checkbox

add_filter( ‘simpay_get_paymentintent_args_from_payment_form_request’, function( $args ) { $args[‘metadata’] = array_map( function( $value ) { // If the value is `on` or `off`, change it. Otherwise return the normal value. if ( ‘off’ === $value ) { return ‘No’; } else if…Continue reading