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: Add Tracking Provider | |
Plugin URI: https://www.damiencarbery.com/ | |
Description: Add new An Post (Irish postal service) as a tracking provider. | |
Author: Damien Carbery | |
Author URI: https://www.damiencarbery.com | |
Version: 0.1.20240414 | |
*/ |
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: WC Minimalize Checkout Settings | |
* Plugin URI: https://woocommerce.com/ | |
* Description: Reduce checkout to the bare minimum. | |
* Version: 1.0.0 | |
* Author: Kathy Darling | |
* Author URI: http://kathyisawesome.com/* | |
* Requires at least: 5.3.0 | |
* Tested up to: 5.3.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
User-agent: * | |
Disallow: /wp-admin/ | |
Disallow: /?s= | |
Disallow: /search/ | |
Allow: /admin/admin-ajax.php | |
Disallow: /cgi-bin/ | |
Disallow: /wp-content/cache/ | |
Disallow: /trackback/ | |
Disallow: */trackback/ |
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 | |
/** | |
* Structured data's handler and generator using JSON-LD format. | |
* | |
* @package WooCommerce/Classes | |
* @since 3.0.0 | |
* @version 3.0.0 | |
*/ | |
defined( 'ABSPATH' ) || exit; |
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
function holiday_message_before_header() { | |
?> | |
<div class="header-block"> | |
<?php echo do_shortcode( '[block id="YOUR BLOCK NAME"]' ); ?> | |
</div> | |
<?php | |
} | |
add_action( 'flatsome_before_header', 'holiday_message_before_header', 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 | |
/* | |
Plugin Name: WooCommerce Stock Info | |
Plugin URI: https://www.damiencarbery.com/2019/10/list-stock-levels-in-woocommerce/ | |
Description: List the stock level for each product and variation. | |
Author: Damien Carbery | |
Author URI: https://www.damiencarbery.com | |
Version: 0.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
// 06-05-2019 Retain Quote Billing & Shipping Country ELSE assign Location based on IP (Geolocation) | |
function remove_checkout_optional_fields_label_script() { | |
// Only on checkout page | |
if( ! ( is_checkout() && ! is_wc_endpoint_url() ) ) return; | |
$optional = ' <span class="optional">(' . esc_html__( 'optional', 'woocommerce' ) . ')</span>'; | |
?> | |
<script> | |
jQuery(function($){ | |
// On "update" checkout form event remove option to select countries | |
$(document.body).on('update_checkout', function(){ |
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: Inject Adverts into Posts and Pages | |
Plugin URI: https://www.damiencarbery.com/2019/09/inject-adverts-into-posts-and-pages/ | |
Description: Inject a specified page or widget area into post or page content. | |
Author: Damien Carbery | |
Author URI: https://www.damiencarbery.com | |
Version: 0.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 | |
/** | |
* WooCommerce: Customers can change the quantity & delete it on checkout page. | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly. | |
} |