Cart Link With Item Count Shortcode
Adds a [wpide_cart_link] shortcode that shows a cart link with the number of items and total, which updates automatically when products are added.
Snippet Library
3,040 free snippets from the WPIDE team and the community. Copy the code, or add any snippet to your site in one click with WPIDE.
Adds a [wpide_cart_link] shortcode that shows a cart link with the number of items and total, which updates automatically when products are added.
Adds a [category_list] shortcode that prints a linked list of your categories, optionally with post counts and nested subcategories.
Replaces the "Search products…" hint inside WooCommerce's product search box with your own text, such as "Search 2,000 parts by name or code".
Adds a [child_pages] shortcode that lists the subpages of the current page, so section landing pages always link to everything below them.
Adds a [phone_link] shortcode that prints your phone number as a tap-to-call link, formatted for reading but dialled correctly in international format, so it only needs to be changed in one place.
Adds a [wpide_copy text="SAVE20"] shortcode that shows the code in a dashed box with a Copy button, and confirms with "Copied!" when clicked.
Adds a [toggle] shortcode that hides text behind a clickable title, built on the native details element so it works without JavaScript.
Adds a [transcript] shortcode that wraps the text version of a podcast or video in an accessible show/hide section, so every recording can have a transcript without cluttering the page.
Adds a coloured left border to events in The Events Calendar's list, day and month views based on their event category, so visitors can scan the calendar by type.
Gives each order status its own clear colour in the admin orders list, so processing, on-hold and failed orders stand out at a glance.
Adds a [wpide_contact_form] shortcode with name, email and message fields that emails you each message, protected by a nonce, a hidden honeypot, a time trap and a per-visitor hourly limit.
Adds [members_only] and [guests_only] shortcodes so you can show different text, links or offers to visitors depending on whether they are logged in.
Adds a [wpide_for_users] shortcode that shows its content only to the user accounts you list, handy for private notes to one client on a shared page.
Adds a [cookie_list] shortcode that prints a clear table of the cookies your site uses, with provider, purpose and duration, for your cookie or privacy policy page.
Adds a "Copy" button to every code block in your posts so readers can copy commands and code samples with one click.
Adds a [wpide_affiliate_link] shortcode that shows logged-in affiliates their referral link for the current page (or a page you choose) with a copy button.
Adds a [countdown] shortcode that shows a live days, hours, minutes and seconds countdown to a date, with a message once the time is up.
Adds a [wpide_next_event_countdown] shortcode that shows the next upcoming event with a live days-hours-minutes countdown to its start.
Limits chosen coupon codes, such as a welcome discount, to customers who have never placed a paid order, checked by account and billing email.
Shows which coupon codes were used on each order in a new column on the admin orders screen.
Outputs the current year. Insert it with the snippet shortcode anywhere you need a year that updates itself, such as a footer notice.
Adds a new Support section to the My Account area with its own URL and content, for help links, a contact form shortcode or FAQs.
Adds a [field] shortcode that prints the value of a custom field of the current post, so you can show details like a price or a subtitle inside the content.
Validates chosen Contact Form 7 fields against your own patterns, such as postcodes, order numbers or membership IDs, each with its own error message.