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_typesand 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_versionrecords seeded terms and flushed rewrites; transient{ns}_schedule_checkedlimits the schedule check to hourly. - Post meta
_lh_governance_reminder_staterecords the last reminder raised for a document. - No custom database tables.