# Turn the [acf] Shortcode Back On

> Re-enables Advanced Custom Fields' own [acf field="..."] shortcode, which ACF 6.3 switched off by default for security.

- Type: PHP
- Runs: Run everywhere
- Category: [Custom Post Types & Fields](https://wpide.com/library/category/post-types/)
- Tags: acf, shortcode, compatibility
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/acf-enable-shortcode/

## Code

```php
add_action( 'acf/init', function () {
    if ( function_exists( 'acf_update_setting' ) ) {
        acf_update_setting( 'enable_shortcode', true );
    }
} );
```

## Notes

Only turn this on if you trust everyone who can write content, since the shortcode can read any field of any post.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Turn the [acf] Shortcode Back On" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
