/** * @link https://library.wpcode.com/snippet/j57zm12g/ */ add_filter( ‘simpay_payment_button_class’, /** * @param array $classes List of class names. * @return array */ function( $classes ) { $classes[] = ‘my-button-class-1’; $classes[] = ‘my-button-class-2’; return $classes; } );Continue reading
/** * @link https://library.wpcode.com/editor/rodjwgom/ */ add_filter( ‘simpay_global_minimum_amount’, /** * @param float $minimum_amount */ function( $minimum_amount ) { return 0.50; } );Continue reading
/** * @link https://library.wpcode.com/snippet/j57zmp2g/ */ add_filter( // Update `123` to match your Form ID. // Update `2`to match the custom field ID. ‘simpay_form_123_field_2_default_value’, /** * @var string $default * @return string */ function( $default ) { // Set the default…Continue reading
add_action( ‘init’, function() { remove_action( ‘wp_scheduled_delete’, ‘wp_scheduled_delete’ ); } );Continue reading
// Post Date Function function post_date(){ // If modified date if ( get_the_date() !== get_the_modified_date() ) { $dateTime = get_the_modified_date( ‘c’ ); $itemropType = ‘dateModified’; $date = ‘‘. get_the_modified_date() .’‘; } else { // If published date $dateTime = get_the_date(…Continue reading
/** * @link https://library.wpcode.com/snippet/e500y359/ * * @param string $separator Decimal separator. * @return string */ function simpay_custom_decimal_separator( $separator ) { return ‘,’; } add_filter( ‘simpay_decimal_separator’, ‘simpay_custom_decimal_separator’ );Continue reading
/** * @link https://library.wpcode.com/snippet/j57zqp2g/ */ add_filter( ‘simpay_decimal_places’, /** * @param int $places Number of decimal places. * @return int */ function( $places ) { return 0; } );Continue reading
/** * @link https://library.wpcode.com/snippet/rodjlwom/ */ add_filter( ‘simpay_custom_amount_field_type’, /** * @param string $input_type * @return string */ function ( $input_type ) { return ‘number’; } );Continue reading
/** * @link https://library.wpcode.com/snippet/7oq8llow/ * * @param \SimplePay\Core\PaymentForm\PriceOption[] $price_options Payment form price options. * @param \SimplePay\Core\Abstracts\Form $form Payment form. * @return \SimplePay\Core\PaymentForm\PriceOption[] */ add_filter( ‘simpay_get_payment_form_price_options’, function( $price_options, $form ) { // BEGIN UPDATES. $form_id = 150; // Payment form ID.…Continue reading