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 | |
public function test_update_payment_amount() { | |
$pre_update_total_earnings = get_option( 'edd_earnings_total' ); | |
$pre_update_payment_amount = edd_sanitize_amount( edd_get_payment_amount( $this->_payment_id ) ); | |
$payment_download = array( | |
'id' => $this->_post->ID, | |
'price_id' => '1', | |
'amount' => '100', | |
'quantity' => '1' |
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: Easy Digital Downloads - Commenter has purchased | |
* Description: Adds a 'Purchased' tag after a commenter who's purchased a download | |
* Author: Chris Klosowski | |
* Version: 1.0 | |
*/ | |
/** | |
* NOTE: This is currently not very performant. If an email address has a lot |
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
#jetpack_summary_widget .hndle { | |
background: inherit !important; | |
color: inherit !important; | |
} |
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
#!/usr/bin/env bash | |
if [ $# -lt 2 ]; then | |
echo "usage: $0 <plugin/theme> <repo-slug>" | |
exit 1 | |
fi | |
TYPE=$1"s" | |
REPO=$2 | |
echo "Changing Directory to:" |
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: On This Date | |
Plugin URI: https://kungfugrep.com/ | |
Description: Gives a shortcode [on_this_date] to show posts from this day of the month in all years | |
Version: 0.1 | |
Author: Chris Klosowski | |
Author URI: https://kungfugrep.com | |
License: GPLv2 or later | |
*/ |
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
# Add this to your .bashrc (linux) or .bash_profile (OS X) | |
alias getsalts="curl https://api.wordpress.org/secret-key/1.1/salt/" | |
# Changes to these files require closing and reopening a new terminal session to be recognized |
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 | |
function ck_our_reply_additions( $text, $args, $comment, $post ) { | |
$text = $text . ' <button>Click here to like this comment</button>'; | |
return $text; | |
} | |
add_filter( 'comment_reply_link', 'ck_our_reply_additions', 10, 4 ); |
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: WooCommerce - Fees by State | |
* Plugin URI: https://filament-studios.com/ | |
* Description: Add Fees to the cart based off the shipping state | |
* Version: 1.0 | |
* Author: Filament Studios | |
* Author URI: https://filament-studios.com | |
* License: GPL-2.0+ | |
*/ |
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
location ~* ^/podcast-download/ { | |
try_files $uri $uri/ | |
fastcgi_index /index.php; | |
include fastcgi_params; | |
fastcgi_pass 127.0.0.1:9000; | |
} |