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: EDD Test Payments | |
Plugin URI: https://gist.github.com/zackkatz/7418620 | |
Description: Allow admins to use Test Payment even when it's not enabled. | |
Author: Katz Web Services, Inc. | |
Version: 1.0 | |
Author URI: http://katz.co | |
*/ |
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
/** | |
* Convert tiny thumbnails to larger previews for product texture swatches | |
* @group Product | |
* | |
*/ | |
jQuery('.textureContainer .thumbnail').attr('style', function() { | |
return jQuery(this).attr('style').replace('.thumbnail.png', '.preview.png'); | |
}); |
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: Add the plugin link! | |
Plugin URI: https://katz.co | |
Description: Add the plugin link to the Admin Bar | |
Author: Katz Web Services, Inc. | |
Author URI: http://www.katzwebservices.com | |
Version: 1.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
$('body').on( 'submit.edit-post', '#post', function () { | |
// If the title isn't set | |
if( $("#title").val().length === 0 ) { | |
// Show the alert | |
alert('A title is required.'); | |
// Hide the spinner | |
$('#major-publishing-actions .spinner').hide(); |
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: Debug Bar for Gravity Forms No-Conflict Mode | |
Plugin URI: http://katz.co | |
Description: Enable debug bar when Gravity Forms has No Conflict Mode on. | |
Version: 1.0 | |
Author: Katz Web Services, Inc. | |
Author URI: http://katz.co | |
*/ | |
add_filter( 'gform_noconflict_scripts', 'debug_bar_add_gf_noconflict'); |
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
/** | |
* Validate a Gravity Forms license submission against EDD remote validation | |
* | |
* In Gravity Forms, for the text field you want to use as the license key entry, | |
* go to Advanced tab, check the "Allow field to be populated dynamically" checkbox, | |
* then enter the value as `edd-{download_id}`, where {download_id} is the, you guessed | |
* it, EDD Download ID. | |
* | |
* @param array $is_valid_and_form_array Gravity Forms passes an array with two keys: `is_valid` (boolean) and `form` (Gravity Forms form array) | |
* @return array Same format as incoming. |
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: EDD W3TC Fix Discount Codes | |
* Plugin URI: http://gravityview.co | |
* Description: Fix discount code caching issues for Easy Digital Downloads when using W3 Total Cache | |
* Version: 1.1 | |
*/ | |
if( function_exists( 'wp_suspend_cache_addition' ) ) { |
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
/** | |
* Get readme response from the readme.txt configuration in EDD Software Licensing | |
* | |
* @param int $id Download ID | |
* @return array|boolean Readme array if exists; NULL if not exists | |
*/ | |
function get_edd_sl_readme( $id = NULL ) { | |
if( !empty( $id ) && function_exists('_edd_sl_get_readme_data') ) { |
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 | |
/** | |
* Get the Activation URL for a plugin | |
* @param string $plugin_path Directory and file name of plugin, like: `hello-dolly/hello.php` | |
* @return string URL to activate the plugin | |
*/ | |
function get_plugin_activation_link( $plugin_path = 'hello-dolly/hello.php' ) { | |
return wp_nonce_url(admin_url('plugins.php?action=activate&plugin='.$plugin_path), 'activate-plugin_'.$plugin_path); | |
} |
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: GravityView - Show All Users in Change Entry Creator | |
Plugin URI: http://gravityview.co | |
Description: Show all users in the Change Entry Creator dropdown (instead of just 300) | |
Version: 1.1 | |
Author: Katz Web Services, Inc. | |
Author URI: http://www.katzwebservices.com | |
Text Domain: gravityview | |
License: GPLv2 or later |
OlderNewer