Remove Recurring Donation Time Periods
This snippet removes some options for recurring donation periods with Charitable's Recurring Donations addon. This might…
Chatbot
Chatbot that helps with client services and questions.
Allow mobile zoom
function et_add_viewport_meta(){ echo ''; }
Remove Gutenberg Blocks CSS
add_action( 'wp_enqueue_scripts', function () { wp_dequeue_style( 'wp-block-library' ); wp_dequeue_style( 'wp-block-library-theme' ); // Remove WooCommerce block CSS…
WordPress Post Views Counter Function
function wpb_set_post_views($postID) { $count_key = 'wpb_post_views_count'; $count = get_post_meta($postID, $count_key, true); if($count==''){ $count = 0; delete_post_meta($postID,…
Change a currency symbol AMD to Դրամ
/** * Change a currency symbol */ add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 10, 2); function change_existing_currency_symbol( $currency_symbol, $currency )…
Add User Email To Donation Summary
This will allow - among other places - for the user email to be displayed on…
Disable default WordPress image sizes
// Disable default WordPress image sizes add_filter('intermediate_image_sizes', '__return_empty_array'); // Disable large scaled image size add_filter('big_image_size_threshold', '__return_false');…
Leave Tasty recipe ratings with WP-PostRatings
The Tasty Recipes rating system works with the default WordPress comment form. However, if you use…
Clear Auto Fill in WooCommerce Checkout
Clears the auto fill on the WooCommerce Checkout page.
Hide sidebar on mobile device
function custom_hide_sidebar_on_mobile() { echo ' '; } add_action('wp_head', 'custom_hide_sidebar_on_mobile');
Remove address from the header
Remove address block from the header
Elementor - Fix the Accordion SEO issue
add_filter( 'elementor/widget/render_content', function ( $widget_content, $widget ) { if ( 'accordion' === $widget->get_name() ) { $widget_content…
Minify HTML
function minify_html($buffer) { // Remove comments $buffer = preg_replace('//', '', $buffer); // Remove whitespace $buffer =…
Lazy load YouTube videos in WordPress with Shortcode
Lazy load YouTube videos in WordPress with Shortcode