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 | |
/** | |
* File: wp-config.php | |
* | |
* Enable WordPress debug only for your IP address | |
* | |
* Once you know your IP address you can edit your wp-config.php file and edit the WP_DEBUG constant and replace it with this function and your IP address. | |
* | |
* NOTE: If you re-boot your router and have a dynamic IP address you will need to update your IP address in wp-config.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: 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 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 { | |
--base: 20; | |
--scale-headings: 1.44; | |
--scale-mobile: 0.7; | |
--scale-mobile-headings: 0.4; | |
--scale-icons: 1.4; | |
--min-viewport: 480; | |
--max-viewport: 1600; | |
--max-size: var(--base); | |
} |
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 | |
wp_head(); | |
if ( have_posts() ) { | |
while ( have_posts() ) { | |
the_post(); | |
the_title(); | |
the_content(); | |
} | |
} |
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: Notify admin of customer address changes | |
Plugin URI: https://www.damiencarbery.com/2019/09/notify-admin-of-customer-address-changes/ | |
Description: Email the site admin when a customer changes their billing or shipping address in WooCommerce. | |
Author: Damien Carbery | |
Author URI: https://www.damiencarbery.com | |
Version: 0.2 | |
WC tested up to: 8.2.2 | |
*/ |
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: Display attribute name and value in WooCommerce | |
Plugin URI: https://www.damiencarbery.com/2019/09/display-attribute-name-and-value-in-woocommerce/ | |
Description: Show the attribute name beside the attribute value in WooCommerce (in Cart, Checkout and order emails). | |
Author: Damien Carbery | |
Version: 0.2 | |
*/ | |
add_filter( 'woocommerce_product_variation_title_include_attributes', 'dcwd_product_variation_title_include_attributes', 10, 2 ); |
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
// Source: https://blog.templatetoaster.com/update-old-urls-in-database/ | |
// How to Change/Update links with MySQL | |
update TABLE_NAME set FIELD_NAME = replace(FIELD_NAME, ‘find string’, ‘replace string’); | |
// For replacing the URL across all database tables, Click on SQL tab and in the panel type the below code: | |
UPDATE wp_options SET option_value = replace(option_value, 'Existing URL', 'New URL') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET post_content = replace(post_content, 'Existing URL', 'New URL'); |
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 | |
/** | |
* Hook: woocommerce_before_main_content. | |
* | |
* @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content) | |
* @hooked woocommerce_breadcrumb - 20 | |
* @hooked WC_Structured_Data::generate_website_data() - 30 | |
*/ |
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 | |
// Init | |
// ----------------------------------------------------------------------- | |
define('DOING_AJAX', true); | |
define('SHORTINIT', true); | |
// WP Load | |
// ----------------------------------------------------------------------- | |
require('wp-load.php'); |
NewerOlder