Static Page
html, body { overflow-x:hidden }
Disable "Scheduled export e-mail of ... returned false when sending to ..." notice in Scheduled Exports
function custom_woo_ce_cron_export_email_wp_mail_failure_notice() { // Turn off the error notice return false; } add_filter( 'woo_ce_cron_export_email_wp_mail_failure_notice', 'custom_woo_ce_cron_export_email_wp_mail_failure_notice' );
Switching between ftp_put and ftp_fput FTP upload methods in Store Exporter Deluxe
function custom_woo_ce_cron_export_ftp_switch() { // ftp_put or ftp_fput return 'ftp_fput'; } add_filter( 'woo_ce_cron_export_ftp_switch', 'custom_woo_ce_cron_export_ftp_switch' );
Trigger a Scheduled Export via a WordPress Action
function custom_trigger_scheduled_export_url() { $secret_key = ( isset( $_GET['secret_key'] ) ? sanitize_text_field( $_GET['secret_key'] ) : false );…
Remove Emojis
/** * Disable the emojis in WordPress. */ add_action( 'init', function () { remove_action( 'wp_head', 'print_emoji_detection_script',…
Add tracking pixel / javascript on modal checkout complete | Display Eventbrite
Enable addition javascript to be executed on Eventbrite Modal Order Complete, this can be use for…
Change Arabic Currency symbol to the currency short code
example change د.إ to AED and all the Arabic currencies
pixel 1
facebook pixel
Blocks on templates
Setting a specific block on specific templates by default
GA Tag-header
A GPTBOT FOR MY WEBSITE
Add duplicate link to admin bar menu
Extend the WPCode duplicate snippet (https://library.wpcode.com/snippet/7oqnzxow/) with an admin bar menu item. The duplicate snippet needs…
Cores especificas para cada status do posts/pages
/*----------------------------------------------- Distinto color segun estado de entrada -----------------------------------------------*/ function posts_status_color() { ?>
WordPress Content Filter: Removing Tags for Enhanced Display Control
The purpose of this code snippet is to filter out tags and their contents from the…
WordPress Typography Enhancement: Preventing Widows in Conten
This code is a WordPress filter designed to prevent "widows" in typography within the content displayed…