#Test credit card numbers to use when developing with Stripe
4242424242424242 Visa
4012888888881881 Visa
4000056655665556 Visa (debit)
<?php | |
/** | |
* WARNING! THIS SNIPPET MAY BE OUTDATED. | |
* The latest version of this snippet can be found in the Gravity Wiz Snippet Library: | |
* https://github.com/gravitywiz/snippet-library/blob/master/gravity-forms/gw-limit-checkboxes.php | |
*/ | |
/** | |
* Limit How Many Checkboxes Can Be Checked | |
* http://gravitywiz.com/2012/06/11/limiting-how-many-checkboxes-can-be-checked/ | |
*/ |
<?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 ); |
<?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 |
# ----------------------------------------------------------------- | |
# .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 |
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; |
<?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 ) { |
#!/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 | |
// 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> |
<?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; | |
} |
#Test credit card numbers to use when developing with Stripe
4242424242424242 Visa
4012888888881881 Visa
4000056655665556 Visa (debit)