View woocommerce-delete-customer-ip.php
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 | |
/** | |
* Snippet for deleting the customer IP address from WooCommerce orders. | |
* Important for Trusted Shops® certificates in Germany. | |
*/ | |
add_action( 'woocommerce_checkout_update_order_meta', 'mp1401091554', 1 ); | |
function mp1401091554( $order_id ) { | |
update_post_meta( | |
$order_id, | |
'_customer_ip_address', |
View elementor-form-additional-webhook.php
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: Elementor Form Additional Webhook | |
* Plugin URI: https://coreysalzano.com/ | |
* Description: Adds a second Webhook to the Lot Wizard trial signup form | |
* Version: 1.0.0 | |
* Author: Corey Salzano | |
* Author URI: https://github.com/mistercorey | |
* License: GPLv2 or later | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html |
View widget-titles.php
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( 'widget_title', 'ddw_custom_widget_title_headline' ); | |
/** | |
* Widget Titles: Change default H4 to an H3. | |
* | |
* @author David Decker - DECKERWEB | |
* @link http://deckerweb.de/twitter | |
*/ | |
function ddw_custom_widget_title_headline( $title ) { |
View gist:1e17c328b5f36adfecb5
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
jQuery(function () { | |
// 0 = monday, 1 = tuesday, 2 = wednesday, 3 = thursday, | |
// 4=friday, 5 = saturday, 6=sunday | |
var daysToDisable = [2, 4, 5]; | |
jQuery("#input_id_id").datepicker({ | |
beforeShowDay: disableSpecificWeekDays | |
}); |
View education20-home-widgetized.php
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 support for widgetized home page */ | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
add_action( 'genesis_loop', 'ddw_education_home_loop_helper' ); | |
/** | |
* Add widget support for the Education 2.0 homepage. | |
* If no widgets active, display the default loop. | |
* | |
* @author David Decker - DECKERWEB |
View gist:2392882
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 | |
// Action hooks: | |
add_action( 'eddtb_custom_main_items', 'eddtb_add_custom_main_items' ); | |
/** | |
* Easy Digital Downloads Toolbar: Add Custom Main Items | |
*/ | |
function eddtb_add_custom_main_items() { | |
// Your custom stuff here, you might only use the WP Toolbar / Admin Bar API here! |
View astra-disable-google-fonts.php
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 | |
/** Do NOT include the opening php tag */ | |
/** | |
* Do not load a list of Google Fonts in Astra | |
* | |
* @link https://gist.github.com/deckerweb/528e9f64f09b15ed4d6729b77d87dc78 | |
* @author David Decker - DECKERWEB | |
*/ |
View wp-admin-add-posts-state.php
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 post state to the projects page | |
//====================================================================== | |
add_filter( 'display_post_states', 'ecs_add_post_state', 10, 2 ); | |
function ecs_add_post_state( $post_states, $post ) { |
View wc-custom-add-to-cart-texts.php
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 | |
/** Do NOT include the opening php tag */ | |
add_filter( 'woocommerce_product_add_to_cart_text' , 'custom_woocommerce_product_add_to_cart_text' ); | |
/** | |
* Custom text for 'woocommerce_product_add_to_cart_text' filter for all product types/ cases. | |
* | |
* @link https://gist.github.com/deckerweb/cf466e017fd01d503469 |
NewerOlder