I hereby claim:
- I am bhays on github.
- I am bhays (https://keybase.io/bhays) on keybase.
- I have a public key whose fingerprint is 8833 BDFF 8365 C003 10C9 559A D681 0C00 7868 739C
To claim this, I am signing this object:
| <?php | |
| /** | |
| * Plugin Name: TEC Demote Events | |
| * Plugin URI: | |
| * Description: Set expired events as drafts one day after end date. | |
| * Version: 1.0.0 | |
| * Author: Ben Hays | |
| * Author URI: http://benjaminhays.com | |
| * License: GPL-2.0+ | |
| * License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| // Return error if email is not set for password retrieval | |
| add_action( 'lostpassword_post', 'email_only_lostpassword_post', 10, 1 ); | |
| function email_only_lostpassword_post( $errors ){ | |
| if( !is_email($_POST['user_login']) ){ | |
| $errors->add('invalidcombo', __('<strong>ERROR</strong>: Invalid email addreess.')); | |
| return $errors; | |
| } | |
| } | |
| // Translate some login page text |
| <?php | |
| function include_field_types_acf_pages_by_template( $version ) { | |
| include_once('acf-pages-by-template.php'); | |
| } | |
| add_action('acf/include_field_types', 'include_field_types_acf_pages_by_template'); | |
| // exit if accessed directly | |
| if( ! defined( 'ABSPATH' ) ) exit; | |
| // check if class already exists |
I hereby claim:
To claim this, I am signing this object:
| .twitter-typeahead .tt-query, | |
| .twitter-typeahead .tt-hint { | |
| margin-bottom: 0; | |
| } | |
| .tt-hint { | |
| display: block; | |
| width: 100%; | |
| height: 38px; | |
| padding: 8px 12px; | |
| font-size: 14px; |
| // Translate theme strings | |
| function mytranslate_filter_gettext( $translated, $original, $domain ) { | |
| // Array of original strings and what they should be replaced with | |
| $strings = array( | |
| 'Contribute Now' => 'Donate Now', | |
| ); | |
| if ( isset( $strings[$original] ) ) { | |
| $translations = &get_translations_for_domain( $domain ); |
| add_filter('gform_pre_render', 'disable_submit'); | |
| function disable_submit($form) { | |
| ?> | |
| <script type="text/javascript"> | |
| jQuery(document).ready(function($){ | |
| $('#gform_submit_button_<?php echo $form['id']; ?>').on('click', function(event){ | |
| var submitCopy = $(this).clone(); | |
| submitCopy.prop('id', '').prop('disabled', true).prop('value', 'Processing...').insertAfter($(this)); | |
| $(this).hide(); |
| (function($){ | |
| $.fn.quantityDiscounts = function(options) { | |
| // set up default options | |
| var defaults = { | |
| discountColor: '#FF0000', | |
| discounts: [ | |
| { limit: 174, discount: .75, text: "25% Discount Applied"}, | |
| { limit: 139, discount: .80, text: "20% Discount Applied"}, |