User Switching
Easily switch to a Customer when using the User Switching plugin
ai content idea generator
function openai_generate_text() { // Get the topic from the AJAX request $prompt = $_POST['prompt']; $prompt ="generate…
Auto register guests that purchase
function wc_register_guests( $order_id ) { // get all the order data $order = new WC_Order($order_id); //get…
Using an Office 365 GCC or DoD email address
For security measures, Government Community Cloud (GCC) and U.S. Department of Defense (DoD) accounts typically use…
Redirect from Array
Setup redirect for multiple pages.
Paid Memberships Pro with WC Vendors
// PAID MEMBERSHIPS PRO -- UPGRADE TO VENDOR, DOWNGRADE TO SUBSCRIBER /* Members signing up for…
Add custom page to the vendor dashboard
// Hook into the navigation add_filter( 'wcv_pro_dashboard_urls', 'add_test_page_nav', 9 ); function add_test_page_nav( $pages ){ $pages[ 'test_page'…
Add terms to downloads shortcode
Adds label and comma-separated terms list to [downloads] shortcode based on taxonomy
Enable Downloads in the WP REST API
Enable the download products to show in the WP REST API
Disable WooCommerce widgets on vendor store pages
/** * Remove widgets from the vendor store and single product pages conditionally. * * You…
WP Simple Pay: Add Customer Phone to Customer Metadata
Adds the "Telephone" customer field value to the Customer record's metadata. This value is normally only…
Google Search Console
Google Search console snippet
Google Webmaster SEO Issue | Fix Duplicate without user-selected canonical
This snippet hooks into Rank Math’s rank_math/frontend/robots filter to modify how WordPress handles robots meta tags…
Add Password Hint
Add standard WP password hint to checkout right below account creation fields.