Use this code snippet in the functions.php file to create a shortcode that works in elementor. // Create current year shortcode function current_year_shortcode() { $year = date('Y'); return $year; } add_shortcode('current_year', 'current_year_shortcode');' Anywhere you add [current_year], it will populate the year. For example: @[current_year] Home Centered Care Institute will display as @2025 […]
WordPress
Add Multiple Products to Cart with Single "Add to Cart" Link
Add the code below to functions.php Once that's done, WooCommerce add-to-cart links will work with multiple products in the following format: https://website.com/cart/?add-to-cart=586,592,593,595,596&quantities=1,1,1,1,1 586, etc. are the product ID's you want to add to cart, and in this link, the 1's are the quantity of each product, listed in order, separated by commas. /** * Add […]
Redirect Client Portal Success Pay Invoice to Dedicated Thank You Page
// When Client Portal Invoice Paid Redirect to a Dedicated Page add_action( 'i4w_cportal_invoice_pay_success', 'payment_success' ); function payment_success( $array ) { header( ‘Location: http://www.apple.com‘ ) ; }
How to Disable Automatic Plugin Updates in WordPress
How to Turn Off Automatic WordPress Core Updates 1. Access your wp-config.php file in order to add this snippet: define( 'WP_AUTO_UPDATE_CORE', false ); To access the file, you’ll need to either use FileZilla (or another File Transfer Protocol (FTP) solution) or the file manager in your web host’s cPanel. Once you have access, move to […]
ACS Webinar Registration and Email Broadcast
Stop WordPress Plugin Update Emails
// Disable core update emails add_filter( 'auto_core_update_send_email', '__return_false' ); // Disable plugin update emails add_filter( 'auto_plugin_update_send_email', '__return_false' ); // Disable theme update emails add_filter( 'auto_theme_update_send_email', '__return_false' ); put that in the functions file of the child theme.
Trigger Popup from Menu Elementor
https://elementor.com/help/how-to-trigger-a-popup-from-a-nav-menu-item/
Code to add to bottom of form for HCCI to populate company field
The Events Calendar Import/Export Process
WP All Import Add-On for The Events Calendar
Help With AutoLoad Clear AutoLoad WooCommerce
It's safe to turn off the autoload, but upon the next woocommerce update it will be turned on again. So the long-term solution is to turn off the setting “Allow usage of WooCommerce to be tracked”. Here is how to do this Check your “Allow usage of WooCommerce to be tracked” setting: Go to WooCommerce […]
