Digital Sovereignty for everyone

Hooks and filters

Every hook name starts with the plugin namespace, lh_governance_documents, shown below as {ns}. All are filters unless marked as an action.

Content model

  • {ns}_post_type_name, {ns}_taxonomy_name, {ns}_rewrite_slug, {ns}_post_type_args, {ns}_taxonomy_args
  • {ns}_default_types: seeded type terms, slug to label.
  • {ns}_meta_prefix, {ns}_get_fields: meta key prefix and field definitions.
  • {ns}_approval_bodies, {ns}_review_cycles (slug to years).
  • {ns}_type_defaults, {ns}_default_owner_role, {ns}_fallback_review_cycle
  • {ns}_compute_next_review: the derived next review date.

Review due and reminders

  • {ns}_review_due_lead_days (30): how far ahead a review counts as due.
  • {ns}_overdue_reminder_interval_days (30): repeat interval while overdue.
  • {ns}_reminder_statuses, {ns}_reminder_recipients, {ns}_notification_text
  • {ns}_component_name, {ns}_component_action: the BuddyPress notification component and action.
  • {ns}_review_due_query_var: the Review due view’s query var.
  • {ns}_daily_hook, {ns}_uses_action_scheduler

Display

  • {ns}_approval_body_labels, {ns}_review_cycle_labels
  • {ns}_document_rows: rows shown by the details block.
  • {ns}_template_content: markup of the single document block template.

Plugin

  • {ns}_init_plugin: return false to stop the plugin loading.
  • lh_governance_documents_return_plugin_namespace, {ns}_return_plugin_text_domain, {ns}_plugin_name
  • {ns}_post_type_list_filters: other plugins’ post type lists this post type adds itself to.

Other plugins’ hooks used

  • lh_lps_get_lockable_post_types and LH MCP General Abilities’ _return_writable_post_types: the post type adds itself to both.
  • bp_notifications_get_registered_components, bp_notifications_get_notifications_for_user: the reminder notifications.

Scheduled job and stored state

  • Action lh_governance_documents_daily, once a day per site, runs the reminder check.
  • Option {ns}_post_type_schema_version records seeded terms and flushed rewrites; transient {ns}_schedule_checked limits the schedule check to hourly.
  • Post meta _lh_governance_reminder_state records the last reminder raised for a document.
  • No custom database tables.

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

Install LHero.org

lhero.org

Open it straight from your home screen, full screen and quicker to load.

  1. Tap the Share button . If you cannot see it, tap ••• first.
  2. Scroll down and tap Add to Home Screen.
  3. Tap Add.
  1. Tap the browser menu â‹®.
  2. Tap Install app or Add to Home screen.
  1. In the menu bar, choose File, then Add to Dock.

Use your browser's menu to install this site or add it to your home screen.