Different Menu for Logged-In Visitors
Shows another navigation menu to logged-in users in the same theme location, for example with "My account" and "Log out" instead of "Sign up".
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.
Shows another navigation menu to logged-in users in the same theme location, for example with "My account" and "Log out" instead of "Sign up".
Shows a different number of posts on the first page of the blog than on the following pages, for example 3 featured posts up front and 10 per page after that, with pagination still correct.
Lets a classic theme use single-cat-{slug}.php for posts in a given category, for example a recipe layout for posts filed under Recipes, falling back to the normal template.
Sends buyers of specific downloads to their own thank-you page after purchase, for example with setup instructions or an onboarding video.
Adds a dynamic tag that prints a value from the page address, such as ?city=Paris, so landing pages can echo campaign keywords in headings.
Adds a custom query ID "wpide_upcoming" that shows only items whose date field (for example an event date) is today or later, soonest first.
Emails your events editor whenever an event is submitted for review (for example through Community Events or by a contributor), with a direct link to approve it.
Sends users a short email when an administrator changes their role, for example when a subscriber becomes an author.
Registers a read-only endpoint at /wp-json/wpide/v1/latest that returns your latest posts in a compact format, as a starting point for your own API routes.
Marks chosen pages as not cacheable in LiteSpeed Cache from code, for example pages with a personalised widget, a query parameter or for visitors with a specific cookie.
Stops chosen products or whole categories, such as gift cards, samples or spare parts, from appearing in the related products section.
Keeps posts from the categories you choose out of the classic Recent Posts widget, for example sponsored posts or internal news.
Adds a required checkbox to the checkout only when the cart has products from a chosen category, for example "I understand personalised items cannot be returned".
Adds extra colors to the editor palette only while editing a chosen post type (for example a landing page type), and prints the matching color classes on the front end.
Uses translations from a closely related language when the visitor's exact locale has none, for example German (Germany) files on a Swiss German site or Spanish (Spain) on a Mexican Spanish site, instead of falling back to English.
Rewrites links and image URLs that still point at a site's old network address (like example.com/shop/) to its mapped domain when content is displayed.
Makes headings scale smoothly between mobile and desktop sizes with CSS clamp(), generated from a simple size table, so titles never look too big on phones.
Switches to fonts that cover the script of the page or block language, for example Arabic, Hebrew, Japanese, Chinese, Korean, Thai and Hindi, while keeping your theme font for Latin text.
Unlocks the Free Shipping method once the cart holds a set number of items, for example six bottles or three books, instead of a money threshold.
Opens a full-screen search box when visitors click any link to #search (for example a menu item) and closes with Escape, giving small headers a roomy, focused search.
Gives every product saved without a SKU an automatic one based on a prefix and the product ID, for example "SHOP-0142".
Creates a set of single-use coupon codes in one go, for printed flyers, influencer campaigns or event giveaways, and lists them so you can copy them.
Grants chosen capabilities to individual user accounts, for example letting one editor manage plugins, without creating a new role.
Adds "Additional roles" checkboxes to the user edit screen so an administrator can give someone a second role, for example Editor plus Shop Manager.