4242424242424242 Visa
4012888888881881 Visa
4000056655665556 Visa (debit)
| <?php | |
| /** | |
| * Payment subscriptions and updating billing and cancelling subscriptions takes place with these hooks | |
| * We need the stripe customer user id for updating billing | |
| * we need the entry id of subscription so we can cancel it. | |
| */ | |
| /** | |
| * @param $entry |
| <?php | |
| function sv_free_checkout_fields() { | |
| global $woocommerce ; | |
| // Bail we're not at checkout, or if we're at checkout but payment is needed | |
| if ( ! is_checkout() || ( is_checkout() && WC()->cart->needs_payment() ) ) { | |
| return; | |
| } |
| <?php | |
| // This file assumes that you have included the nav walker from https://github.com/twittem/wp-bootstrap-navwalker | |
| // somewhere in your theme. | |
| ?> | |
| <header class="banner navbar navbar-default navbar-static-top" role="banner"> | |
| <div class="container"> | |
| <div class="navbar-header"> | |
| <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse"> | |
| <span class="sr-only"><?= __('Toggle navigation', 'sage'); ?></span> |
| #!/bin/bash | |
| echo "All certificates in ca-certificates.crt, listed by subject:" | |
| awk -v cmd='openssl x509 -noout -subject' '/BEGIN/{close(cmd)};{print | cmd}' < /etc/ssl/certs/ca-certificates.crt | |
| echo "All certificates in ca-certificates.crt, listed by subject, check for presence of VeriSign's 'Class 3 Public Primary - G5':" | |
| awk -v cmd='openssl x509 -noout -subject' '/BEGIN/{close(cmd)};{print | cmd}' < /etc/ssl/certs/ca-certificates.crt | grep "G5" |
| <?php | |
| /** | |
| * Add a blank option to a Gravity Forms dropdown | |
| * | |
| * @param object $form The Gravity Form | |
| * @return object $form The modified Gravity Form | |
| */ | |
| function wp_gravity_forms_add_empty_dropdown_option( $form ) { | |
| // Select the correct form, then set the id of the field(s) we need to change | |
| if( $form['id'] == 1 ) { |
| upstream phpfpm { | |
| server unix:/var/run/php5-fpm.sock; | |
| } | |
| upstream hhvm { | |
| server unix:/var/run/hhvm/hhvm.sock; | |
| } | |
| # SSL | |
| ssl_protocols TLSv1 TLSv1.1 TLSv1.2; |
| # ----------------------------------------------------------------- | |
| # .gitignore for WordPress | |
| # Bare Minimum Git | |
| # http://ironco.de/bare-minimum-git/ | |
| # ver 20150227 | |
| # | |
| # This file is tailored for a WordPress project | |
| # using the default directory structure | |
| # | |
| # This file specifies intentionally untracked files to ignore |
| <?php | |
| /** | |
| * Plugin Name: WooCommerce Remove Billing Fields for Free Virtual Products | |
| * Plugin URI: https://gist.github.com/BFTrick/7873168 | |
| * Description: Remove the billing address fields for free virtual orders | |
| * Author: Patrick Rauland | |
| * Author URI: http://patrickrauland.com/ | |
| * Version: 2.0 | |
| * | |
| * This program is free software: you can redistribute it and/or modify |
| <?php | |
| add_filter( 'gform_form_tag', 'gform_form_tag_autocomplete', 11, 2 ); | |
| function gform_form_tag_autocomplete( $form_tag, $form ) { | |
| if ( is_admin() ) return $form_tag; | |
| if ( GFFormsModel::is_html5_enabled() ) { | |
| $form_tag = str_replace( '>', ' autocomplete="off">', $form_tag ); | |
| } | |
| return $form_tag; | |
| } | |
| add_filter( 'gform_field_content', 'gform_form_input_autocomplete', 11, 5 ); |