acf/ajax/shortcode_capability

Last updated Apr 5, 2024

Description

Used to modify the capability required to parse the ACF shortcode over AJAX requests, commonly used by third party site builder plugins. By default, this is set to edit_posts.

If you return false from this filter, no capability check will be carried out by ACF. In this case, you must validate access in your filter code before returning false to ensure logged out or subscribers users are unable to access ACF data.

Changelog

  • Added in version 5.11.2
Supercharge Your Website With Premium Features Using ACF PRO

Speed up your workflow and unlock features to better develop websites using ACF Blocks and Options Pages, with the Flexible Content, Repeater, Clone, Gallery Fields & More.

Explore Features View Pricing

PRO Features
ACF Blocks
Options Pages
PRO Fields
Repeater
Flexible Content
Gallery
Clone