Expose Chosen ACF Fields in the REST API
Adds an "acf_fields" property with the ACF fields you list to the REST API responses of chosen post types, for headless front ends and apps.
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 an "acf_fields" property with the ACF fields you list to the REST API responses of chosen post types, for headless front ends and apps.
Adds the product meta fields you list to WooCommerce REST API product responses as a tidy "custom_fields" object, and lets API clients update them.
Registers a post meta field (a subtitle by default) so it is saved safely, available in the REST API and usable by the block editor and block bindings.
Fills Gravity Forms drop-down, radio and checkbox fields with the titles of your posts, pages or a custom post type, so the choices update when you publish content.
Lets Gravity Forms fields fill themselves with the visitor's name, email, username or role when they are logged in, using simple parameter names.
Lets REST API requests filter posts by custom fields you allow, e.g. /wp-json/wp/v2/posts?meta_key=location&meta_value=paris, for apps and headless front ends.
Adds a dropdown above a post type's admin list with every value used in a custom field (such as city or brand), so you can show only matching items.
Adds required first and last name fields to the My Account registration form and saves them to the customer's profile and billing details.
Adds an optional "Gift message" field to the block-based checkout using the WooCommerce additional checkout fields API. The message is saved with the order and shown in the admin.
Hides the ACF fields you choose in the editor for everyone except administrators, such as internal notes or technical settings.
Removes rarely needed panels like Discussion, Custom Fields and the slug box from the editor for everyone but administrators, in both editors.
Removes clutter from the profile screen, such as the website, biography, keyboard shortcuts and toolbar options, for non-administrators.
Removes the Advanced Custom Fields menu on the live site so field groups can only be edited on development or staging, where changes are synced through JSON.
Hides the fields of a Contact Form 7 form once it has been sent successfully and leaves only the thank-you message, so people do not submit twice.
Removes the raw "Custom Fields" box from the editor for everyone except administrators, so editors cannot accidentally change values that plugins and the theme depend on.
Outlines the Alternative Text field in red when it is empty in the media library and media modal, so authors notice it before inserting an image.
Adds extra comment fields stored as comment meta (such as a phone number or rating) to personal data exports, and removes them during erasure requests.
Adds the custom user fields you list (such as phone or company) to the personal data export file WordPress creates under Tools > Export Personal Data.
Saves chosen custom fields, such as a subtitle, price or event date, with every revision so restoring an older version brings those values back too.
Adds password and confirm-password fields to the WordPress registration form, so new members pick their own password instead of waiting for a "set your password" email.
Adds a "wp meta-keys" command that lists every custom field key used by a post type and how many posts use it, which helps when cleaning up after old plugins or planning a migration.
Registers a custom field (such as a subtitle) with the REST API so it can be connected to Paragraph or Heading blocks through Block Bindings and edited right in the block.
Keeps the phone field on the classic checkout but no longer requires it.
Turns the optional Company field into a required one for stores that sell only to businesses.