Docs & Support

Learn about all the Formidable features and get support from our amazing customer success team.

frm_sanitize_shortcodes

This hook allows shortcodes in field values to be processed rather than shown on the page.

Added security protections prevents shortcodes inside a field from being processed in user-submitted data. If you would like to opt-out of this protection, you can use this filter.

Usage

add_filter( 'frm_sanitize_shortcodes', 'maybe_allow_user_shortcodes', 10, 2 );

Formidable Forms makes advanced site building simple. Launch forms, directories, dashboards, and custom WordPress apps faster than ever before.

Parameters

  • $sanitize (boolean) - return true if shortcodes should be secure
  • $atts (array)
    • $atts['entry'] (object)
    • $atts['value'] (string) - the user-submitted value

Examples

Process all shortcodes in all fields

add_filter( 'frm_sanitize_shortcodes', '__return_false' );
Was this article helpful? *

This article may contain affiliate links. Once in a while, we earn commissions from those links. But we only recommend products we like, with or without commissions.

In this article

    We have a small, but amazing team of dedicated people who are committed to helping you achieve your goals and project requirements.


    Copyright © 2025 Strategy11, LLC. Formidable Forms® is a registered trademark Strategy11, LLC.

    Join 400,000+ using Formidable Forms to create form-focused solutions fast. Get Formidable Forms