This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_product_add_to_cart_text' , 'custom_woocommerce_product_add_to_cart_text' ); | |
/** | |
* custom_woocommerce_template_loop_add_to_cart | |
*/ | |
function custom_woocommerce_product_add_to_cart_text() { | |
global $product; | |
$product_type = $product->get_type(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Plugin Name: GiveWP Add Email Tag for Anonymous Checkbox | |
function give_anonymous_email_tag( $email_tags ) { | |
// Adds an email tag called {give_anonymous_status} to indicate whether the donor opted in or not. | |
$email_tags[] = array( | |
'tag' => 'give_anonymous_status', // The tag name. | |
'desc' => __( 'This outputs whether the donor opted-in to the anonymous option', 'give' ), // For admins. | |
'func' => 'render_give_anonymous_status_email_tag', // Callback to function below. | |
'context' => 'donation', | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Setup ACF Pro to use a license key in wp-config | |
# | |
# 1. Place your license key in a file called .acf-license-key somewhere your ssh user has access to it. | |
# Default is in your home directory: ~/.acf-license-key | |
# Change the setting below if you need to put it somewhere else | |
# 2. install this file in /usr/local/bin or someplace in your PATH | |
# 3. make sure you have WP CLI installed | |
# 4. run acf-install-license from the root of your wordpress install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="field1"> | |
<button type="button" id="sub" class="sub">-</button> | |
<input type="text" id="1" value="0" class="field" /> | |
<button type="button" id="add" class="add">+</button> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Git Updater Ignore | |
* Plugin URI: https://gist.github.com/afragen/414612961ac500b652862096a54d62d7 | |
* Description: This plugin is used to set Git Updater to ignore specific repository slugs. | |
* Version: 0.3 | |
* Author: Andy Fragen | |
* License: MIT | |
* Requires at least: 5.2 | |
* Requires PHP: 5.6 |