For Developers

Hooks Reference

Estimated reading: 2 minutes

This document lists the main hooks and filters available for extending Content Lifecycle Manager.

Content Maintenance Filters

clmngr_computed_status

Filters the computed lifecycle status for a post.

Arguments:

  • $status
  • $post_id
  • $meta_snapshot

clmngr_available_actions

Filters the available maintenance actions.

Arguments:

  • $actions_array
  • $context

clmngr_snooze_options

Filters the snooze duration options.

Arguments:

  • $options_array

clmngr_default_review_interval_days

Filters the default review interval.

Arguments:

  • $days

clmngr_enabled_post_types

Filters the enabled post types used by the plugin.

Arguments:

  • $post_types

clmngr_action_meta_updates

Filters the final meta updates applied during a maintenance action.

Arguments:

  • $meta_updates
  • $post_id
  • $action
  • $params
  • $user_id

clmngr_user_can_apply_action

Filters whether a user can apply a maintenance action.

Arguments:

  • $can
  • $user_id
  • $post_id
  • $action

Content Maintenance Actions

clmngr_before_apply_action

Runs before a maintenance action is applied.

clmngr_after_apply_action

Runs after a maintenance action is applied.

clmngr_marked_reviewed

Runs after content is marked as reviewed.

clmngr_snoozed

Runs after a snooze action changes the next review date.

clmngr_archived

Runs after content is archived.

clmngr_unarchived

Runs after content is unarchived.

Ideas Filters

clmngr_idea_states

Filters the available idea states.

clmngr_idea_convert_allowed_post_types

Filters the post types available when converting an idea.

Arguments:

  • $post_types
  • $idea_id

clmngr_idea_convert_post_args

Filters the post arguments used before wp_insert_post() during idea conversion.

Arguments:

  • $post_args
  • $idea_id
  • $selected_post_type
  • $user_id

clmngr_idea_convert_clm_meta

Filters the lifecycle meta applied to a post created from an idea.

Arguments:

  • $clm_meta_updates
  • $idea_id
  • $new_post_id

Ideas Actions

clmngr_before_idea_convert

Runs before an idea is converted into a post.

clmngr_after_idea_convert

Runs after an idea is converted into a post.

clmngr_idea_state_changed

Runs after an idea state changes.

Arguments:

  • $idea_id
  • $old_state
  • $new_state
  • $user_id

Setup Filter

clmngr_show_setup_wizard

Controls whether the setup wizard should be shown again after onboarding has been completed.

Share this Doc

Hooks Reference

Or copy link

CONTENTS