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: View WooCommerce order on front end | |
Plugin URI: https://www.damiencarbery.com/2024/01/view-woocommerce-order-on-front-end/ | |
Description: Use an encrypted link to allow a customer view order details on the front end. | |
Author: Damien Carbery | |
Author URI: https://www.damiencarbery.com | |
Version: 0.3.20240719 | |
WC tested to: 9.1.2 | |
Requires Plugins: woocommerce |
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
// This code attempts to add a .with-border class to dropdowns as they are rendered. | |
// Create a new object for custom validation of a custom field. | |
var dcwdCustomFieldController = Marionette.Object.extend( { | |
initialize: function() { | |
console.log( 'In initialize of new code 1154' ); | |
// From: https://developer.ninjaforms.com/codex/field-view-rendering/ | |
this.listenTo( nfRadio.channel( 'listselect' ), 'render:view', this.renderView ); | |
}, |
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: Hide shipping rates if free shipping available | |
Plugin URI: https://www.damiencarbery.com/2024/01/hide-shipping-rates-if-free-shipping-available/ | |
Description: Hide non-free shipping rates if zero cost shipping rates are available. | |
Author: Damien Carbery | |
Version: 0.1 | |
WC tested up to: 8.4.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
<p>Experiment with <a href="https://contactform7.com/2023/06/20/setting-upper-limit-of-checkbox-selection/">Schema-Woven Validation</a> and limiting the number of checkboxes that can be clicked.</p> | |
<label> Your name | |
[text* your-name] </label> | |
<label> Your email | |
[email* your-email] </label> | |
[select your-country class:enable-select2 "China" "India" "San Marino" "Adélie penguin" "Emperor penguin" "Gentoo penguin" "Little penguin" "Humboldt penguin" "Southern rockhopper penguin" "Galapagos penguin"] |
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
// This code enables Select2 to dropdowns as they are rendered. | |
// Create a new object for custom validation of a custom field. | |
var dcwdDropdownFieldController = Marionette.Object.extend( { | |
initialize: function() { | |
// From: https://developer.ninjaforms.com/codex/field-view-rendering/ | |
this.listenTo( nfRadio.channel( 'listselect' ), 'render:view', this.renderView ); | |
}, | |
renderView: function( view ) { |
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 order note after WooCommerce order email sent | |
Plugin URI: https://www.damiencarbery.com/2023/12/add-order-note-when-email-sent-to-customer/ | |
Description: Add a private order note when an order email is sent to the customer. | |
Author: Damien Carbery | |
Author URI: https://www.damiencarbery.com | |
Version: 0.1 | |
WC tested to: 8.3.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: Add controls to Elementor Post Settings panel | |
Description: Short demonstration to add a custom control to the Elementor Post Settings panel. | |
Plugin URI: https://www.damiencarbery.com/2023/11/add-controls-to-elementor-post-settings-panel/ | |
Version: 0.1 | |
Author: Damien Carbery | |
*/ | |
defined( 'ABSPATH' ) || exit; |
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: Defer WooCommerce Advanced Notifications emails for a few minutes | |
Plugin URI: https://www.damiencarbery.com/2023/10/defer-woocommerce-advanced-notifications-emails-for-a-few-minutes/ | |
Description: Delay the sending of emails from the Advanced Notification plugin for a specified time after the normal delivery time. Use Action Scheduler instead of WP Cron. | |
Author: Damien Carbery | |
Author URI: https://www.damiencarbery.com | |
Version: 0.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 | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly. | |
} | |
// Elementor DaysMessages Widget - Elementor widget that displays different text based on the day of the week. | |
class Elementor_DaysMessages_Widget extends \Elementor\Widget_Base { | |
// Set widget internal name. | |
public function get_name() { |
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 - remove email order details table. | |
Plugin URI: https://www.damiencarbery.com/2023/09/remove-order-details-from-woocommerce-emails/ | |
Description: Remove the order details table (listing items ordered) from order emails. Optionally remove billing and shipping details. | |
Author: Damien Carbery | |
Author URI: https://www.damiencarbery.com | |
Version: 0.1.20230918 | |
*/ |