Add Language and Translations to the REST API (WPML)
Adds wpml_language and wpml_translations fields to posts and pages in the REST API, so headless front ends and apps know each item's language and the IDs of its translations.
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 wpml_language and wpml_translations fields to posts and pages in the REST API, so headless front ends and apps know each item's language and the IDs of its translations.
Finds form fields on the page that have a placeholder but no label or accessible name and gives them one from the placeholder text, a common problem with theme and plugin forms.
Adds width and height attributes to images in your posts that lack them (for example images pasted from other sites or old posts), using the real image file size, which prevents layout jumps while pages load.
Adds WebP and AVIF to the file types every site on the network may upload, without editing the "Upload file types" list in Network Settings.
Adds the post type and slug of the current page plus a logged-in or logged-out class to the body tag, for precise CSS targeting.
Appends the page the form was sent from, the date, the visitor's browser and IP address to every Contact Form 7 email, without editing each form's mail template.
Appends links to the other WPML languages of the current page at the end of a chosen theme menu, labelled with each language's native name.
Adds soft, medium and lifted shadow options to the editor's Shadow control for buttons, images, groups and columns, next to the theme's own shadows.
Adds a second button on product pages that adds the product to the cart and takes the shopper straight to checkout, while the normal add to cart button keeps working.
Adds a tab with the same shipping and returns information to every product page, next to Description and Reviews.
Registers a "wp site-stats" WP-CLI command that prints counts of posts, pages, comments and users, as a template for your own command-line tools.
Adds a ContactPoint with phone, email and languages to the Organization entity Rank Math outputs on your site.
Adds a LocalBusiness node with your address, phone and hours to Rank Math's JSON-LD on the homepage, linked to the site's organization.
Adds a LocalBusiness node with address, phone and opening hours to the Yoast SEO graph on the homepage and links it to Yoast's Organization.
Marks the theme's main content area with role="main" when the page has no main element, so screen reader users can jump straight to the content.
Inserts your own paragraph, such as care instructions or a review request, above the order details in the WooCommerce "Order completed" email.
Puts a regular page in front of a custom post type in the Yoast SEO breadcrumbs, for example Home > Services > Web Design when services have no archive.
Adds a "Site Manager" role with everything an editor can do plus managing users and menus, defined in code so nothing is written to the database.
Registers a "Site Settings" options page with Header and Footer sub-pages in the admin, ready for ACF field groups that hold site-wide values.
Adds rel="nofollow" to links in posts and pages that point to other websites, while keeping any rel values already set. Links to your own domain are untouched.
Inserts your blog page (Settings > Reading > Posts page) after "Home" in the Yoast SEO breadcrumbs of single posts and post archives.
Sets the lang attribute on the page's html element from your site language when a theme forgets to print it, so screen readers pronounce your content in the right language.
Adds simple products to the cart in the background from the product page, updating the mini cart and showing a confirmation instead of reloading the page.
Gives each role its own admin color scheme, for example blue for editors and coffee for shop managers, so people instantly see which kind of account they are using.