Making WordPress.org

Changeset 7398


Ignore:
Timestamp:
07/10/2018 02:54:12 AM (8 years ago)
Author:
coreymckrill
Message:

WordCamp Tickets: Modify default payment settings for new sites

Set Stripe to be enabled by default, and PayPal disabled. Set the predefs
for both to be the sandbox.

In testing, this did not affect sites that have already been created, but
haven't changed their payment settings yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/camptix-tweaks/camptix-tweaks.php

    r7397 r7398  
    603603 */
    604604function modify_default_options( $options ) {
    605         $options['payment_methods']        = array( 'paypal'     => true               );
     605        $options['payment_methods']        = array( 'stripe'     => true               );
     606        $options['payment_options_stripe'] = array( 'api_predef' => 'wpcs-sandbox'     );
     607        $options['payment_methods']        = array( 'paypal'     => false              );
    606608        $options['payment_options_paypal'] = array( 'api_predef' => 'wordcamp-sandbox' );
    607609
Note: See TracChangeset for help on using the changeset viewer.