⌘ K

Search

Search portal content

Dreamfox MediaDreamfox Media
⌘ K

Search

Search portal content

Dreamfox MediaDreamfox Media
      • What Can a Client Editor Change?
      • Using Client Edit Mode with Elementor
      • Revisions and the Activity Log
      • Developer Hooks and Filters
  • VIDEO: What Are WordPress Plugins - And How To Use Them?
  • Wordpress Site Health
  1. Home
  2. Wordpress Plugins
  3. Dreamfox Client Edit Mode
  4. Permissions & Editing

Developer Hooks and Filters

Adjust Client Edit Mode permissions in code with the dreamfox_client_edit_permissions, dreamfox_client_edit_can_modify and related hooks.

Developer Hooks and Filters

Adjust Client Edit Mode permissions in code with the dreamfox_client_edit_permissions, dreamfox_client_edit_can_modify and related hooks.

Developer Hooks and Filters

Dreamfox Client Edit Mode exposes filters and an action so developers can adjust permissions and react to blocked saves.

Filters

dreamfox_client_edit_permissions

Filter the permission set used for a protected page. Use it to change the text, image and link permissions programmatically.

dreamfox_client_edit_can_modify

Filter a single per-element or per-attribute permission decision. Structural changes (adding, removing, moving or restyling elements) never reach this filter — they are always denied.

dreamfox_client_edit_allowed_attributes

Classify the attributes of custom blocks or widgets into the categories text, image, link, layout, style and advanced. This tells Client Edit Mode which attributes count as which permission.

dfce_protected_post_types

The post types guarded by the block editor save guard. The default is page and post.

Action

dfce_save_blocked

Fires whenever an enforcement path blocks a save. Use it for custom logging or notifications.

1
2
3add_action( 'dfce_save_blocked', function () {
    // Send a notification, write to your own log, and so on.
} );

Good to know

  • Structural changes are always denied and never reach the can_modify filter.
  • Hooks run on the server, so they apply to every save route: the block editor REST API, classic admin saves, XML-RPC and Elementor.
Revisions and the Activity Log

Every allowed change creates a WordPress revision, and the activity log records allowed and blocked saves.

Frequently Asked Questions About Client Edit Mode

The most frequently asked questions about Dreamfox Client Edit Mode: security, permissions, Elementor, page limits, revisions and uninstalling.

Powered by initdesk
On this page
  • Developer Hooks and Filters
  • Developer Hooks and Filters
  • Filters
  • `dreamfox_client_edit_permissions`
  • `dreamfox_client_edit_can_modify`
  • `dreamfox_client_edit_allowed_attributes`
  • `dfce_protected_post_types`
  • Action
  • `dfce_save_blocked`
  • Good to know