Secure Custom Fields
Secure Custom Fields boosts content management with custom fields and options.
Install in
Secure Custom Fields (SCF) extends WordPress’s capabilities, transforming it into a flexible content management tool. With SCF, managing custom data becomes straightforward and efficient.
Easily create fields on demand.
The SCF builder makes it easy to add fields to WordPress edit screens, whether you’re adding a new “ingredients” field to a recipe or designing complex metadata for a specialized site.
Flexibility in placement.
Fields can be applied throughout WordPress—posts, pages, users, taxonomy terms, media, comments, and even custom options pages—organizing your data how you want.
Display seamlessly.
Using SCF functions, you can display custom field data in your templates, making content integration easy for all levels of developers.
A comprehensive content management solution.
Beyond custom fields, SCF allows you to register new post types and taxonomies directly from the SCF interface, providing more control without needing additional plugins or custom code.
Accessible and user-friendly design.
The field interface aligns with WordPress’s native design, creating an experience that’s both accessible and easy for content creators to use.
Installing this plugin will deactivate plugins with matching function names/functionality, specifically Advanced Custom Fields, Advanced Custom Fields Pro, and the legacy Secure Custom Fields plugins, to avoid code errors (this is the same behavior as ACF Pro).
Read more about Secure Custom Fields at developer.wordpress.org/secure-custom-fields.
Features
- Clear and easy-to-use setup
- Robust functions for content management
- Over 30 Field Types
Written by Joobi from the project's own listing. See the source page
6.9.10
Release Date 20th November 2026
Security
scripttags in block preview HTML no longer run in the block editor unless the block opts in withallowDangerousPreviewScriptsin block.json (allow_dangerous_preview_scriptsinacf_register_block_type()), or the site opts in with the newacf/blocks/allow_dangerous_preview_scriptsfilter.- The
[acf]shortcode no longer shows fields from draft or private posts referenced by a prefixed ID such aspost_123inside a block, or outside the loop. - Icon Picker fields set to return an icon string no longer reveal the URLs of private Media Library images in the REST API.
- Fields registered in code, including field groups loaded from Local JSON, no longer expose their values through the
[acf]shortcode or Block Bindings unless “Allow Access to Value in Editor UI” (allow_in_bindings) is enabled. Fields stored only in the database keep their previous behavior. When a field group exists both in Local JSON and in the database, the Local JSON copy takes precedence. To restore access, setallow_in_bindingstotruein the field definition or JSON file, or turn the setting on for each affected field and save the field group. - Meta box callbacks for custom post types and taxonomies can only be set or changed by super admins on multisite, or administrators on single sites. Other users keep the stored values when saving or importing. The new
enable_meta_box_cb_editsetting turns editing off for everyone. - Options Page saves and front-end forms only write options that belong to their own fields. The Options Page shows a notice when a save skips submitted values.
- REST responses reduce User objects returned as the whole field value, including User fields in Flexible Content rows.
- User profile saves check permission to edit the user before using the form nonce. Comment and term edits require permission to edit the comment or term before fields are saved.
- Block Bindings: the placeholder an
acf/fieldbinding shows in the site editor is escaped as text. - Form serialization ignores input names that would write to the JavaScript object prototype, and the Link field no longer renders stored keys with brackets or prototype names as inputs.
- The WYSIWYG field no longer uses its rendered textarea markup as a format string.
- Flexible Content fields skip stored rows whose key is not a row number.
- The bundled timepicker reads inline settings as JSON instead of evaluating them. DOMPurify is updated to 3.4.18.
Features
- New Settings page (SCF > Settings) with a Features tab to turn SCF features on and off without code. Settings set in code show as “Managed via code” and can’t be changed there.
- Developers can add tabs, sections and fields to the Settings page with the
acf/settings_page/tabs,acf/settings_page/general/sectionsandacf/settings_page/general/{$section}/fieldsfilters, and register settings that can be saved withacf/settings/allowed_db_settings. The Features tab can be hidden with theacf/settings/show_settingsfilter. - Abilities are enabled by default for field groups, post types and taxonomies on WordPress 6.9 and later. They can be turned off for each object, or for the whole site on the Settings page. The
enable_acf_aisetting is renamed toenable_abilities, and existingallow_ai_accessvalues are not carried over. - The Beta Features page is removed. Beta features will move to the Settings page.
Enhancements
- Breaking change: generated post type and taxonomy ability names include the object type, so they no longer collide. For example,
acf/create-bookis nowacf/create-book-postandacf/booksis nowacf/list-book-posts. - Abilities publish valid JSON Schema, so MCP clients can discover and use them. Schemas describe conditional logic, Repeater and Group sub fields, and Flexible Content layouts. The
acf/field-groupsability includes the fields of each field group. - The “Edit Block” button on version 3 blocks that don’t render a preview can be changed with
placeholderButtonTextin block.json or the newacf/blocks/default_placeholder_button_textfilter. - Blocks registered with
acf_register_block_type()can set the InnerBlocksdefault_blockanddirect_insertoptions. - New
acf/blocks/auto_inline_editing/field_return_type_supports_auto_inline_editingfilter. - Child options pages appear in their parent’s menu in Menu Position order. A parent page that redirects to its first child opens the child with the lowest Menu Position.
- Google Map fields find the city for more addresses, such as those that only have a neighborhood or sublocality.
- The Date Picker’s bundled jQuery UI stylesheet is updated to 1.14.2.
Fixes
- Version 3 blocks save default field values when a block is inserted and left unedited.
- Auto inline editing works with values that contain
&, saves inline edits as plain text, and no longer replaces empty array or object values with a placeholder. - Passing a post object to
wp_insert_post()no longer causes a fatal error. - Saving relational fields no longer causes a fatal error when another plugin stores an array in meta whose name starts with
_. - Reading a field before the main query is set up no longer triggers an
is_preview()notice. - Image fields no longer fail validation on hosts that use stream-wrapped file systems, and Image and Gallery fields respect the
acf/is_image_fieldfilter when validating values. - Disabled Flexible Content layouts no longer appear in post previews.
- Number and Range validation messages show decimal minimum and maximum values correctly.
- The media modal keeps showing new uploads after a search returns no results.
- Field group metaboxes that appear without a page reload can be collapsed and expanded.
- True/False fields using the stylized UI show the switch correctly in right-to-left languages.
- Field group settings no longer show an incorrect top border on small screens.
- The Icon Picker field no longer loads an attachment preview when the selected icon is not from the Media Library.
- Options pages no longer trigger a “Using null as an array offset” deprecation notice on PHP 8.5.
- Field groups, post types and taxonomies no longer trigger PHP warnings when an
acf/load_{$post_type}filter returns an invalid value. - The field export ability accepts fields that have
allow_in_bindingsset.
6.9.9
Release Date 11th November 2026
Security
- Taxonomy fields save terms only to objects that use the taxonomy.
- Submitted Taxonomy field values that save terms require permission to assign terms in that taxonomy.
- Saving fields on a profile update requires permission to edit the user.
- The Gallery field renders attachment edit fields only for users who can edit the attachment.
- SCF never reads or writes the user metadata WordPress uses for roles, capabilities or sign-in, whatever a field is named.
Fixes
- Block JSON-LD output honours the
enable_schemasetting, as the post output already did. - Clone and Flexible Content fields mapped to a Schema.org property output only the sub fields mapped to a property, each formatted by its own field type.
6.9.8
Release Date 3rd November 2026
Security
- Saves only keep submitted values for fields rendered for the content being saved, or from field groups whose location rules match it. This now applies to posts, terms, attachments, menu items, widgets, the Customizer, WooCommerce orders, options pages, comments, users and the block editor. Fields added with JavaScript can be allowed with the
acf/form/{context}/allowed_field_keysfilters. Registration forms no longer save fields from field groups set to “User Form is Add / Edit”. - Field, field group, post type, taxonomy and options page settings are sanitized when saved by users without the
unfiltered_htmlcapability. For those users, a field’s wrapper settings are limited to width, class and id. Event handler (on*) attributes in a field’s wrapper setting are never output. - Custom values submitted to Checkbox, Radio and Select fields can no longer change the field’s other settings. The new
acf/fields/allow_append_choicesfilter controls who can add choices, which by default is still only users with the SCF capability. - WordPress’s Custom Fields meta box, its AJAX handler and XML-RPC can no longer change meta that belongs to SCF fields.
- Basic uploader nonces are tied to the content being edited.
- The request that loads field groups while editing a post only returns field groups for that post.
- Relationship, Post Object and Page Link fields don’t show the titles or statuses of posts the current user cannot read, and don’t save newly selected posts the user cannot read. Existing selections the user cannot read are shown as “(Restricted item)” and are kept when saving.
- Relationship, Post Object and Page Link values rendered in blocks leave out posts the post’s author cannot read. New filter:
acf/fields/relational/hide_unreadable_posts. - Bidirectional fields only add references to posts the current user can edit, terms they can assign, and users they can edit or set as a post’s author. Saves made with
update_field(), WP-CLI or cron are not checked. New filters:acf/bidirectional/can_update_targetandacf/is_trusted_save_context. - Block bindings and the shortcode output only user IDs for User fields. New filter:
acf/bindings/allow_user_data.
Fixes
- Block bindings and the shortcode output nothing for values they can’t show as text, such as post objects, instead of causing a fatal error on PHP 8.
- Relationship field searches keep loading results when a page of results is left out.
- Saving a custom choice no longer removes backslashes from the field’s other settings.
Deprecations
scf_post_password_required()is deprecated in favor ofacf_post_password_required(), andscf_restrict_uploaded_field_keys()in favor ofacf_restrict_uploaded_field_keys().- The
scf/upload/generate_previewsfilter is deprecated in favor ofacf/upload/generate_previews, andscf/bidirectional/allow_targetin favor ofacf/bidirectional/can_update_target.
6.9.7
Release Date 21st October 2026
Security
- Submitted relationship values only link back to objects that are valid choices for the field, or that the submitting user can edit. Values saved by code while no user is logged in, such as WP-CLI or cron imports, are not affected. Revisions never link back. New filter:
scf/bidirectional/allow_target. - Preview images for files uploaded through front-end File fields, including PDF previews and audio or video cover art, are only generated for users who can upload to the media library. New filter:
scf/upload/generate_previews. - Password-protected posts referenced by a Post Object or Relationship field are only expanded for users who entered the password or can edit them.
- Field values shown through block bindings only expand referenced content and user details the viewer can read, and the shortcode outputs User fields as IDs.
- Field values of password-protected posts stay hidden in the shortcode, block bindings, JSON-LD and REST API output until the password is entered.
6.9.6
Release Date 16th October 2026
Security
- Field values from a post’s latest revision are only loaded in a real preview, for users who can edit the post.
- Submitted field values are always validated.
- Comment and user saves only keep values and uploaded files for fields from field groups that apply to the comment or user. New filters:
acf/form/comment/allowed_field_keys,acf/form/user/allowed_field_keys, andacf/options_page/allowed_field_keysfor the existing options page restriction. - Image and Gallery fields only accept image files. SVG uploads are still accepted when the site allows them.
- REST responses with
acf_format=standard, and the_sourcevalues in every REST response, return IDs instead of full objects for referenced posts and attachments the requester cannot read. - REST OPTIONS responses only list the fields of a specific object to requesters who can read it.
- User field searches require a nonce created for a User field.
Enhancements
- On WordPress 7.1+, blocks registered without a version default to block version 3. The
acf/blocks/default_block_versionfilter receives the registration source (phporjson). - Version 3 blocks support
"renderPreview": falseto show a placeholder in the editor instead of rendering the template. - SCF admin screens list blocks still pinned to block version 2 or earlier, with a dismissible notice.
acf_encrypt()andacf_decrypt()accept an optional$context.
Fixes
- Inline editable fields in version 3 blocks open on the first click.
- Radio buttons in SCF admin screens draw a centered dot.
- Translated block.json settings are applied correctly.
- Including
pro/blocks-auto-inline-editing.phpdirectly no longer causes a fatal error.
6.9.5
Release Date 7th August 2026
Security
- REST updates now reject bidirectional field writes when the current user cannot edit an inverse target.
- Gallery AJAX responses no longer render attachments the current user cannot read, and empty responses now close the attachment sidebar.
- PDF files uploaded through File and Image fields must start with a valid PDF header. Rejected files are removed from the uploads directory.
- The internal
acf_encrypt()andacf_decrypt()helpers now authenticate encrypted values with an HMAC and require the OpenSSL extension instead of falling back to unauthenticated base64 encoding. Anonymous inlineacf_form()submissions now require OpenSSL on the server.
6.9.4
Release Date 3rd August 2026
Security
- Front-end
acf_form()submissions are now limited to the save target, form settings, and fields that the rendered form exposed. Submissions carrying missing, altered, or expired form data are rejected before validation or saving. - The
acf/form/allowed_field_keysfilter now applies while a form renders rather than on submit. Keys added through it are still accepted on save, so forms extended at runtime keep working.
6.9.3
Release Date 28th July 2026
Hardening
- Restricted Local JSON writes for multisite users who are not super admins to save paths inside the current site’s uploads directory.
- Limited Options Page saves to values for fields assigned to the current page.
- Excluded posts the current user cannot read from Post Object, Page Link, and Relationship field queries.
- Block render templates are now always resolved from the registered block path, and template paths using stream wrappers are rejected.
- Reduced User field values in REST API responses to user IDs, including within Group, Clone, Repeater, and Flexible Content fields.
6.9.2
Release Date 21st July 2026
Fixes
- Fixed Google Maps field values being double-encoded when saved inside a block.
- Inserting a Link field value in the Classic Editor no longer triggers validation for other required fields before the post is saved.
- Auto Inline Editing blocks no longer return truthy placeholder strings for empty field values fetched from a different post inside the block render template.
- V2 and V3 blocks no longer crash when rendering an oEmbed field whose title begins with
[or{. - Field group location rules without a location value no longer cause PHP warnings on page load.
- Improved the appearance of the URL, Number, and Select fields on WordPress 7.0+.
- Fields now save on WooCommerce orders when using HPOS in compatibility mode.
6.9.1
Release Date 2nd July 2026
Security
- Capped the number of user-contributed choices that can be persisted to checkbox, radio, and select field definitions at 1000 by default, with a new
acf/fields/max_appended_choicesfilter for customization. - The WooCommerce order fields save handler is now only registered on order edit screens.
Fixes
- Fixed PHP 8.5 deprecation notices when numeric post ID values contain floats that cannot be represented as integers.
6.9.0
Release Date 23rd June 2026
Hardening
- Improved input validation when duplicating field groups, post types, and taxonomies, including ownership and type checks on the target.
- Restricted persistence of custom choices on checkbox, radio, and select fields to authorized users.
- Constrained the field update ability input schema to known properties.
- Sanitized flexible content layout labels and cleaned up orphaned row meta on layout removal.
- Hardened REST type field-group metadata exposure and oEmbed source formatting.
- Normalized non-scalar block binding attribute values.
- Required authentication and nonce verification before saving fields on WooCommerce orders.
- Preserved localization wrappers in PHP exports and corrected nav menu field ID output.
6.8.9
Release Date 15th June 2026
Security
- Hardened the escaping of wp_options LIKE queries used when loading option-page meta and during taxonomy term cleanup, switching to esc_like() so option-name prefixes are always matched as literals rather than as patterns.
Fixes
- The URL, text, textarea, and select-style fields no longer raise PHP errors when a non-scalar value (such as an array) is submitted; such input is now treated as invalid.
6.8.8
Release Date 11th June 2026
Security
Follow this listing's changes (Atom feed)