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
<?php | |
// Set up task when plugin is activated | |
register_activation_hook(__FILE__, 'dcwd_cron_status_setup_schedule'); | |
// On an early action hook, check if the hook is scheduled - if not, schedule it. | |
function dcwd_cron_status_setup_schedule() { | |
// Add the event only if it is not already scheduled. | |
if ( ! wp_next_scheduled( 'dcwd_cron_status_status_email' ) ) { | |
// Schedule weekly at 2:12am. | |
wp_schedule_event( mktime(2,12,0), 'weekly', 'dcwd_cron_status_status_email'); |
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: Disable CF7 plugin | |
Plugin URI: http://www.damiencarbery.com | |
Description: Disable Contact Form 7 plugin except for certain pages. | |
Author: Damien Carbery | |
Version: $Revision: $ | |
$Id: $ | |
*/ |
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: Move Variations above Short Description | |
Plugin URI: https://www.facebook.com/groups/advanced.woocommerce/permalink/2114573521890389/ | |
Description: Move the variations and Add to Cart to be above the short description. | |
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 | |
/* | |
Plugin Name: Send email via SMTP | |
Plugin URI: https://www.damiencarbery.com/2019/01/send-wordpress-emails-with-smtp/ | |
Description: Send emails via SMTP. | |
Author: Damien Carbery | |
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
# Block WordPress xmlrpc.php requests. | |
<Files xmlrpc.php> | |
deny from all | |
</Files> | |
# Block direct access to wp-config.php. | |
<Files wp-config.php> | |
Deny from all | |
</Files> |
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 | |
/* | |
Plugin Name: Custom note to order email | |
Plugin URI: https://www.damiencarbery.com/2018/07/add-info-to-woocommerce-order-emails/ | |
Description: Add a note to the order email if the order contains products from the specified category. | |
Author: Damien Carbery | |
Version: 0.1 | |
*/ | |
/* Add note about shapetrousers delivery time to the order email. */ |
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 | |
/** | |
* Create a metabox with multiple fields. | |
* Replace `_namespace` with some namespace for your project to avoid conflicts with other items | |
*/ | |
// | |
// Create Metabox | |
// |
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 | |
########### wp replace url in DB ############# | |
1 | |
http://dugoodr.com | |
http://dugoodr2.dev | |
2 | |
/home/dugoodr6/public_html/ | |
/home/jetfire/www/dugoodr2.dev/ |