This file contains hidden or 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
| <link rel='stylesheet' id='bcct_style-css' href='https://chrisk.io/wp-content/plugins/better-click-to-tweet/assets/css/styles.css?ver=3.0' type='text/css' media='all' /> | |
| <link rel='stylesheet' id='edd-styles-css' href='https://chrisk.io/wp-content/plugins/easy-digital-downloads/templates/edd.min.css?ver=2.7.9' type='text/css' media='all' /> |
This file contains hidden or 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 - Exclude empty categories from widget | |
| Plugin URI: https://chrisk.io/woocommerce-hide-categories-with-no-visible-products-in-the-product-category-widget/ | |
| Description: Excludes categories with no visible products from the WooCommerce category list | |
| Version: 0.1 | |
| Author: Chris Klosowski | |
| Author URI: https://chrisk.io | |
| */ |
This file contains hidden or 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: Public IP FIx | |
| * Plugin URI: https://kungfugrep.com | |
| * Description: For testing IP sensitive code, use the public facing IP in your localhost | |
| * Version: 1.0 | |
| * Author: Filament Studios | |
| * Author URI: https://filament-studios.com | |
| * License: GPL-2.0+ | |
| */ |
This file contains hidden or 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: chrisk.io - Example WP-CLI Progress Bar | |
| * Plugin URI: https://chrisk.io/adding-progress-bars-wp-cli-processes/ | |
| * Description: An example plugin for creating progress bars in your WP-CLI processes. | |
| * Version: 1.0 | |
| * Author: Chris Klosowski | |
| * Author URI: https://chrisk.io | |
| * License: GPL-2.0+ | |
| */ |
This file contains hidden or 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 | |
| // Your amazing PHP goes here | |
| ?> | |
This file contains hidden or 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 | |
| /** | |
| * Example Widget | |
| * | |
| */ | |
| class ck_example_widget extends WP_Widget { | |
| /** Constructor */ | |
| function __construct() { | |
| parent::__construct( 'ck_example_widget', Example Widget, array( 'description' => 'My Example Widget' ) ); | |
| add_filter( 'dynamic_sidebar_params', array( $this, 'widget_class' ), 10, 1 ); |
This file contains hidden or 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 | |
| /** | |
| * Triggers all upgrade functions | |
| * | |
| * @since 2.2 | |
| * @return void | |
| */ | |
| function edd_pl_show_upgrade_notice() { | |
| if( ! function_exists( 'EDD' ) ) { |
This file contains hidden or 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_add_remove_service_fee() { | |
| if ( ! class_exists( 'Easy_Digital_Downloads' ) ) { | |
| return; | |
| } | |
| $has_fee = EDD()->fees->get_fee( 'service-fee' ); | |
| $items = edd_get_cart_quantity(); | |
| if ( ! empty( $items ) && ! $has_fee ) { |
This file contains hidden or 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 | |
| /** | |
| * Enable processing refunds on payments where the old status as NOT completed or revoked | |
| * | |
| * Default: false | |
| */ | |
| function ck_maybe_refund_payment( $maybe_refund, $payment ) { |
This file contains hidden or 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 | |
| /** | |
| * Register our settings section | |
| * | |
| * @return array | |
| */ | |
| function ck_edd_settings_section( $sections ) { | |
| // Note the array key here of 'ck-settings' | |
| $sections['ck-settings'] = __( 'Example EDD Extension', 'example-edd-extension' ); |