WordPress

i4w_date – use math to add time to date in a custom field, not just add to today’s date

As shown in https://docs.imember360.com/webhooks/i4w_date The basic HTTP post only adds time to whatever the current date is and stores it in the target field. For example, the post below will add 2 weeks to today’s date, and store it in the custom field Next Meeting. https://yoursite.com/?i4w_date=YOUR_SECURITY_KEY&target=_nextmeeting&operation=plus%202%20weeks If you want to add time to whatever date […]

Elementor Font issue When Migrating Sites

Just FYI, I was able to find a forum that explained that it might be helpful to rename the “elementor” folder in /wp-content/uploads/ and force Elementor to create a new one. They suggested this might rebuild/redownload the fonts.  Looks like it worked.

Lock Down Posts Created by Front-End Users

Hooked to POST CREATION and STATUS CHANGE   We do use  wp_insert_post() and wp_update_post() for creating and updating the custom post. We added the group access update upon every status change with these IDs: $_POST[‘group_access’] = array( 178, 182, 186, );     ====   Without seeing your code how you actually create the draft […]

InfusedWoo Page Redirect Not Working Fix

Elementor has section that needs to be changed. The Solution: To restore the redirect functionality, you’ll need to allow WooCommerce to handle the thank you page process again. Here’s how: Navigate to your Elementor WooCommerce settings Find the “Purchase Summary” page setting Clear/empty this field (see attached screenshot for reference) Save your changes   section […]

Add Custom Shortcode to Generate Current Year as Merge Field for Copyright in Footer

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 […]

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 […]

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 […]