Helping Organisations get organised!

Hooks and filters

Filters

  • lh_post_locking_lock_capability: the capability needed to lock, unlock and edit a locked post. Default manage_options.
  • lh_post_locking_get_lockable_post_types: the array of post type names that can be locked.
  • lh_post_locking_init_plugin: return false to stop the plugin loading.

Actions

  • lh_post_locking_post_locked: fires when a post is locked. Receives the post ID and the ID of the user who locked it.
  • lh_post_locking_post_unlocked: fires when a post is unlocked. Receives the post ID and the ID of the user who unlocked it.

Both actions suit an audit log.

If you like this plugin please consider making a donation to further development