WP Simple Pay: Remove Trailing Decimals
/** * @link https://library.wpcode.com/snippet/323j86jo/ */ add_filter( ‘simpay_decimal_places’, function() { return 0; } );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
/** * @link https://library.wpcode.com/snippet/323j86jo/ */ add_filter( ‘simpay_decimal_places’, function() { return 0; } );Continue reading
blah blah blah blahContinue reading
/** * Create a custom Smart Tag Original doc link: https://wpforms.com/developers/how-to-create-a-smart-tag-for-the-current-time/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_register_smarttag( $tags ) { // Key is the tag, item is the tag name. $tags[ ‘current_time’ ] = ‘Current Time’; return $tags;…Continue reading
/* Include field descriptions inside email notifications Original doc link: https://wpforms.com/developers/how-to-include-field-descriptions-inside-email-notifications/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_html_field_value( $field_val, $field, $form_data, $context ) { if ( $context !== ’email-html’ ) { return $field_val; } if ( empty( $form_data[ ‘fields’…Continue reading
if ( ! function_exists( ‘wcv_default_commission_payout_method_input’ ) ) { /** * Set the default commission payout method to paypal * * @param array $args the input arguments. */ function wcv_default_commission_payout_method_input( $args ) { $args[‘value’] = ‘paypal’; $options = $args[‘options’]; if (…Continue reading