{
  "slug": "mammoth-acceptance-logs",
  "name": "MammothWP Acceptance Logs",
  "version": "1.0.0",
  "source": {
    "repo": "admin-terms-acceptance",
    "ref": "main",
    "refType": "branch",
    "linkRef": "36f6f145beb885d95f3852dfb0faf4d902510f75"
  },
  "docs": "/docs/mammoth-acceptance-logs/hooks/",
  "hooks": [
    {
      "name": "mmwp_terms_accepted",
      "type": "action",
      "group": "Actions",
      "dynamic": false,
      "deprecated": false,
      "summary": "Fires right after an acceptance is persisted.",
      "params": [
        {
          "name": "$user_id",
          "type": "int",
          "description": ""
        },
        {
          "name": "$version_hash",
          "type": "string",
          "description": ""
        },
        {
          "name": "$acceptance_id",
          "type": "int",
          "description": ""
        },
        {
          "name": "$version_id",
          "type": "int",
          "description": ""
        }
      ],
      "anchor": "/docs/mammoth-acceptance-logs/hooks/#mmwp_terms_accepted",
      "source": "https://github.com/mammothwp/admin-terms-acceptance/blob/36f6f145beb885d95f3852dfb0faf4d902510f75/src/Acceptance/AcceptanceService.php#L190"
    },
    {
      "name": "mmwp_terms_content_saved",
      "type": "action",
      "group": "Actions",
      "dynamic": false,
      "deprecated": false,
      "summary": "Fires when the settings page is saved.",
      "params": [
        {
          "name": "$version_hash",
          "type": "string",
          "description": ""
        },
        {
          "name": "$meta",
          "type": "array<string,mixed>",
          "description": "Version number, effective date, change summary."
        }
      ],
      "anchor": "/docs/mammoth-acceptance-logs/hooks/#mmwp_terms_content_saved",
      "source": "https://github.com/mammothwp/admin-terms-acceptance/blob/36f6f145beb885d95f3852dfb0faf4d902510f75/src/Admin/SettingsPage.php#L167"
    },
    {
      "name": "mmwp_terms_record_failed",
      "type": "action",
      "group": "Actions",
      "dynamic": false,
      "deprecated": false,
      "summary": "Fires when an acceptance could not be persisted.",
      "params": [
        {
          "name": "$user_id",
          "type": "int",
          "description": ""
        },
        {
          "name": "$version_id",
          "type": "int",
          "description": ""
        },
        {
          "name": "$db_error",
          "type": "string",
          "description": ""
        }
      ],
      "anchor": "/docs/mammoth-acceptance-logs/hooks/#mmwp_terms_record_failed",
      "source": "https://github.com/mammothwp/admin-terms-acceptance/blob/36f6f145beb885d95f3852dfb0faf4d902510f75/src/Acceptance/AcceptanceRepository.php#L93"
    },
    {
      "name": "mmwp_terms_skipped",
      "type": "action",
      "group": "Actions",
      "dynamic": false,
      "deprecated": false,
      "summary": "",
      "params": [
        {
          "name": "$user_id",
          "type": "int",
          "description": ""
        }
      ],
      "anchor": "/docs/mammoth-acceptance-logs/hooks/#mmwp_terms_skipped",
      "source": "https://github.com/mammothwp/admin-terms-acceptance/blob/36f6f145beb885d95f3852dfb0faf4d902510f75/src/Acceptance/AcceptanceService.php#L203"
    },
    {
      "name": "mmwp_terms_version_changed",
      "type": "action",
      "group": "Actions",
      "dynamic": false,
      "deprecated": false,
      "summary": "Fires when the terms content hash changes.",
      "params": [
        {
          "name": "$old_hash",
          "type": "string",
          "description": ""
        },
        {
          "name": "$new_hash",
          "type": "string",
          "description": ""
        }
      ],
      "anchor": "/docs/mammoth-acceptance-logs/hooks/#mmwp_terms_version_changed",
      "source": "https://github.com/mammothwp/admin-terms-acceptance/blob/36f6f145beb885d95f3852dfb0faf4d902510f75/src/Acceptance/AcceptanceService.php#L94"
    },
    {
      "name": "mmwp_terms_version_published",
      "type": "action",
      "group": "Actions",
      "dynamic": false,
      "deprecated": false,
      "summary": "Fires once a new terms version has been archived and made active.",
      "params": [
        {
          "name": "$version_id",
          "type": "int",
          "description": ""
        },
        {
          "name": "$version_hash",
          "type": "string",
          "description": ""
        }
      ],
      "anchor": "/docs/mammoth-acceptance-logs/hooks/#mmwp_terms_version_published",
      "source": "https://github.com/mammothwp/admin-terms-acceptance/blob/36f6f145beb885d95f3852dfb0faf4d902510f75/src/Versioning/VersionArchivist.php#L235"
    },
    {
      "name": "mmwp_terms_can_manage",
      "type": "filter",
      "group": "Filters",
      "dynamic": false,
      "deprecated": false,
      "summary": "Filters whether a user may manage the terms plugin.",
      "params": [
        {
          "name": "$allowed",
          "type": "bool",
          "description": ""
        },
        {
          "name": "$user_id",
          "type": "int",
          "description": ""
        }
      ],
      "anchor": "/docs/mammoth-acceptance-logs/hooks/#mmwp_terms_can_manage",
      "source": "https://github.com/mammothwp/admin-terms-acceptance/blob/36f6f145beb885d95f3852dfb0faf4d902510f75/src/Support/ManagerAccess.php#L96"
    },
    {
      "name": "mmwp_terms_content_source",
      "type": "filter",
      "group": "Filters",
      "dynamic": false,
      "deprecated": false,
      "summary": "Filters the raw terms & conditions content used both for display and for computing the version hash.",
      "params": [
        {
          "name": "$default",
          "type": "string",
          "description": "The content saved on the settings page."
        }
      ],
      "anchor": "/docs/mammoth-acceptance-logs/hooks/#mmwp_terms_content_source",
      "source": "https://github.com/mammothwp/admin-terms-acceptance/blob/36f6f145beb885d95f3852dfb0faf4d902510f75/src/Content/ContentSource.php#L59"
    },
    {
      "name": "mmwp_terms_drop_data_on_uninstall",
      "type": "filter",
      "group": "Filters",
      "dynamic": false,
      "deprecated": false,
      "since": "1.0.0",
      "summary": "Whether to delete the acceptance log, version archive, audit events and per-user acceptance markers when the plugin is deleted.",
      "params": [
        {
          "name": "$drop",
          "type": "bool",
          "description": "Whether to delete the evidence."
        }
      ],
      "anchor": "/docs/mammoth-acceptance-logs/hooks/#mmwp_terms_drop_data_on_uninstall",
      "source": "https://github.com/mammothwp/admin-terms-acceptance/blob/36f6f145beb885d95f3852dfb0faf4d902510f75/uninstall.php#L77"
    },
    {
      "name": "mmwp_terms_eligible_managers",
      "type": "filter",
      "group": "Filters",
      "dynamic": false,
      "deprecated": false,
      "summary": "Filters the users offered when appointing a manager.",
      "params": [
        {
          "name": "$users",
          "type": "\\WP_User[]",
          "description": ""
        }
      ],
      "anchor": "/docs/mammoth-acceptance-logs/hooks/#mmwp_terms_eligible_managers",
      "source": "https://github.com/mammothwp/admin-terms-acceptance/blob/36f6f145beb885d95f3852dfb0faf4d902510f75/src/Support/ManagerAccess.php#L140"
    },
    {
      "name": "mmwp_terms_enable_admin_ui",
      "type": "filter",
      "group": "Filters",
      "dynamic": false,
      "deprecated": false,
      "summary": "Filters whether the plugin's management UI is available at all.",
      "params": [
        {
          "name": "$enabled",
          "type": "bool",
          "description": ""
        }
      ],
      "anchor": "/docs/mammoth-acceptance-logs/hooks/#mmwp_terms_enable_admin_ui",
      "source": "https://github.com/mammothwp/admin-terms-acceptance/blob/36f6f145beb885d95f3852dfb0faf4d902510f75/src/Support/AdminUi.php#L50"
    },
    {
      "name": "mmwp_terms_excluded_roles",
      "type": "filter",
      "group": "Filters",
      "dynamic": false,
      "deprecated": false,
      "summary": "",
      "params": [
        {
          "name": "$roles",
          "type": "string[]",
          "description": "Role slugs to exclude from the gate."
        }
      ],
      "anchor": "/docs/mammoth-acceptance-logs/hooks/#mmwp_terms_excluded_roles",
      "source": "https://github.com/mammothwp/admin-terms-acceptance/blob/36f6f145beb885d95f3852dfb0faf4d902510f75/src/Scope/RoleScope.php#L71"
    },
    {
      "name": "mmwp_terms_excluded_users",
      "type": "filter",
      "group": "Filters",
      "dynamic": false,
      "deprecated": false,
      "summary": "",
      "params": [
        {
          "name": "$user_ids",
          "type": "int[]",
          "description": "User IDs to exclude from the gate."
        }
      ],
      "anchor": "/docs/mammoth-acceptance-logs/hooks/#mmwp_terms_excluded_users",
      "source": "https://github.com/mammothwp/admin-terms-acceptance/blob/36f6f145beb885d95f3852dfb0faf4d902510f75/src/Scope/RoleScope.php#L86"
    },
    {
      "name": "mmwp_terms_ip_header",
      "type": "filter",
      "group": "Filters",
      "dynamic": false,
      "deprecated": false,
      "summary": "Filters which request header carries the forwarded client IP.",
      "params": [
        {
          "name": "$header",
          "type": "string",
          "description": "A $_SERVER key, e.g. HTTP_CF_CONNECTING_IP."
        }
      ],
      "anchor": "/docs/mammoth-acceptance-logs/hooks/#mmwp_terms_ip_header",
      "source": "https://github.com/mammothwp/admin-terms-acceptance/blob/36f6f145beb885d95f3852dfb0faf4d902510f75/src/Support/ClientIp.php#L77"
    },
    {
      "name": "mmwp_terms_notify_admin_email",
      "type": "filter",
      "group": "Filters",
      "dynamic": false,
      "deprecated": false,
      "summary": "",
      "params": [
        {
          "name": "$arg1",
          "type": "",
          "description": ""
        }
      ],
      "anchor": "/docs/mammoth-acceptance-logs/hooks/#mmwp_terms_notify_admin_email",
      "source": "https://github.com/mammothwp/admin-terms-acceptance/blob/36f6f145beb885d95f3852dfb0faf4d902510f75/src/Notifications/CertificateMailer.php#L192"
    },
    {
      "name": "mmwp_terms_popup_strings",
      "type": "filter",
      "group": "Filters",
      "dynamic": false,
      "deprecated": false,
      "summary": "Filters the button/label strings shown in the popup.",
      "params": [
        {
          "name": "$strings",
          "type": "array<string,string>",
          "description": ""
        }
      ],
      "anchor": "/docs/mammoth-acceptance-logs/hooks/#mmwp_terms_popup_strings",
      "source": "https://github.com/mammothwp/admin-terms-acceptance/blob/36f6f145beb885d95f3852dfb0faf4d902510f75/src/Frontend/PopupRenderer.php#L91"
    },
    {
      "name": "mmwp_terms_public_api_enabled",
      "type": "filter",
      "group": "Filters",
      "dynamic": false,
      "deprecated": false,
      "summary": "Filters whether the public, unauthenticated read routes exist at all.",
      "params": [
        {
          "name": "$enabled",
          "type": "bool",
          "description": "Defaults to true."
        }
      ],
      "anchor": "/docs/mammoth-acceptance-logs/hooks/#mmwp_terms_public_api_enabled",
      "source": "https://github.com/mammothwp/admin-terms-acceptance/blob/36f6f145beb885d95f3852dfb0faf4d902510f75/src/Api/PublicRestController.php#L68"
    },
    {
      "name": "mmwp_terms_retention_settings",
      "type": "filter",
      "group": "Filters",
      "dynamic": false,
      "deprecated": false,
      "summary": "Filters the retention settings.",
      "params": [
        {
          "name": "$settings",
          "type": "",
          "description": ""
        }
      ],
      "anchor": "/docs/mammoth-acceptance-logs/hooks/#mmwp_terms_retention_settings",
      "source": "https://github.com/mammothwp/admin-terms-acceptance/blob/36f6f145beb885d95f3852dfb0faf4d902510f75/src/Retention/RetentionPolicy.php#L61"
    },
    {
      "name": "mmwp_terms_send_pdf_email",
      "type": "filter",
      "group": "Filters",
      "dynamic": false,
      "deprecated": false,
      "summary": "Allows disabling the emailed PDF receipt entirely.",
      "params": [
        {
          "name": "$enabled",
          "type": "bool",
          "description": ""
        },
        {
          "name": "$user_id",
          "type": "int",
          "description": ""
        }
      ],
      "anchor": "/docs/mammoth-acceptance-logs/hooks/#mmwp_terms_send_pdf_email",
      "source": "https://github.com/mammothwp/admin-terms-acceptance/blob/36f6f145beb885d95f3852dfb0faf4d902510f75/src/Notifications/CertificateMailer.php#L84"
    },
    {
      "name": "mmwp_terms_site_identifier",
      "type": "filter",
      "group": "Filters",
      "dynamic": false,
      "deprecated": false,
      "summary": "Filters the source application identifier stored on each record.",
      "params": [
        {
          "name": "$default",
          "type": "string",
          "description": ""
        }
      ],
      "anchor": "/docs/mammoth-acceptance-logs/hooks/#mmwp_terms_site_identifier",
      "source": "https://github.com/mammothwp/admin-terms-acceptance/blob/36f6f145beb885d95f3852dfb0faf4d902510f75/src/Support/RequestContext.php#L65"
    },
    {
      "name": "mmwp_terms_skip_duration",
      "type": "filter",
      "group": "Filters",
      "dynamic": false,
      "deprecated": false,
      "summary": "",
      "params": [
        {
          "name": "$arg1",
          "type": "",
          "description": ""
        }
      ],
      "anchor": "/docs/mammoth-acceptance-logs/hooks/#mmwp_terms_skip_duration",
      "source": "https://github.com/mammothwp/admin-terms-acceptance/blob/36f6f145beb885d95f3852dfb0faf4d902510f75/src/Acceptance/AcceptanceService.php#L196"
    },
    {
      "name": "mmwp_terms_trusted_proxies",
      "type": "filter",
      "group": "Filters",
      "dynamic": false,
      "deprecated": false,
      "summary": "Filters the proxies whose forwarded-IP header may be trusted.",
      "params": [
        {
          "name": "$proxies",
          "type": "string[]",
          "description": "IP addresses or CIDR ranges."
        }
      ],
      "anchor": "/docs/mammoth-acceptance-logs/hooks/#mmwp_terms_trusted_proxies",
      "source": "https://github.com/mammothwp/admin-terms-acceptance/blob/36f6f145beb885d95f3852dfb0faf4d902510f75/src/Support/ClientIp.php#L114"
    },
    {
      "name": "mmwp_terms_version_meta",
      "type": "filter",
      "group": "Filters",
      "dynamic": false,
      "deprecated": false,
      "summary": "Filters the version metadata attached to a publication.",
      "params": [
        {
          "name": "$meta",
          "type": "array<string,mixed>",
          "description": "Version metadata so far."
        },
        {
          "name": "$content",
          "type": "string",
          "description": "The content being published."
        },
        {
          "name": "$hash",
          "type": "string",
          "description": "Its version hash."
        }
      ],
      "anchor": "/docs/mammoth-acceptance-logs/hooks/#mmwp_terms_version_meta",
      "source": "https://github.com/mammothwp/admin-terms-acceptance/blob/36f6f145beb885d95f3852dfb0faf4d902510f75/src/Versioning/VersionArchivist.php#L135"
    }
  ]
}