{
  "slug": "wp-self-test",
  "name": "wp-self-test",
  "version": "2.2.5",
  "source": {
    "repo": "wp-self-test",
    "ref": "v2.2.5",
    "refType": "tag",
    "linkRef": "v2.2.5"
  },
  "docs": "/docs/wp-self-test/hooks/",
  "hooks": [
    {
      "name": "mmwp_self_test_admin_menu_exclusions",
      "type": "filter",
      "group": "Browser layer",
      "dynamic": false,
      "deprecated": false,
      "since": "2.1.0",
      "summary": "Filter the substrings that keep an admin URL out of the browser crawl (matched case-insensitively). Return the defaults plus your own, or remove defaults you accept to crawl.",
      "params": [
        {
          "name": "$needles",
          "type": "string[]",
          "description": "Default: DEFAULT_EXCLUSIONS."
        }
      ],
      "anchor": "/docs/wp-self-test/hooks/#mmwp_self_test_admin_menu_exclusions",
      "source": "https://github.com/mammothwp/wp-self-test/blob/v2.2.5/src/Browser/Menu_Inventory.php#L125"
    },
    {
      "name": "mmwp_self_test_browser_command",
      "type": "filter",
      "group": "Browser layer",
      "dynamic": false,
      "deprecated": false,
      "since": "2.1.0",
      "summary": "Filter the command that starts the Node runner of the browser layer.",
      "params": [
        {
          "name": "$command",
          "type": "string[]",
          "description": "Default: `node <package>/e2e/bin/run.js`."
        },
        {
          "name": "$package",
          "type": "string",
          "description": "Directory of the installed e2e package."
        },
        {
          "name": "$definition",
          "type": "array",
          "description": "Case definition."
        }
      ],
      "anchor": "/docs/wp-self-test/hooks/#mmwp_self_test_browser_command",
      "source": "https://github.com/mammothwp/wp-self-test/blob/v2.2.5/src/Browser/Browser_Runner.php#L118"
    },
    {
      "name": "mmwp_self_test_abilities_available",
      "type": "filter",
      "group": "Gates and configuration",
      "dynamic": false,
      "deprecated": false,
      "since": "0.1.0",
      "summary": "Filter whether the Abilities API is usable for self-tests; a host plugin that gates its own abilities can report that here.",
      "params": [
        {
          "name": "$available",
          "type": "bool",
          "description": "Default: `function_exists('wp_get_ability')`."
        }
      ],
      "anchor": "/docs/wp-self-test/hooks/#mmwp_self_test_abilities_available",
      "source": "https://github.com/mammothwp/wp-self-test/blob/v2.2.5/src/Config.php#L143"
    },
    {
      "name": "mmwp_self_test_asset_url",
      "type": "filter",
      "group": "Gates and configuration",
      "dynamic": false,
      "deprecated": false,
      "since": "0.1.0",
      "summary": "Filter the URL of a package asset.",
      "params": [
        {
          "name": "$url",
          "type": "string",
          "description": "Resolved URL."
        },
        {
          "name": "$relative",
          "type": "string",
          "description": "Path relative to the package root."
        }
      ],
      "anchor": "/docs/wp-self-test/hooks/#mmwp_self_test_asset_url",
      "source": "https://github.com/mammothwp/wp-self-test/blob/v2.2.5/src/Config.php#L172"
    },
    {
      "name": "mmwp_self_test_capability",
      "type": "filter",
      "group": "Gates and configuration",
      "dynamic": false,
      "deprecated": false,
      "since": "0.1.0",
      "summary": "Filter the capability required to run the self-tests.",
      "params": [
        {
          "name": "$capability",
          "type": "string",
          "description": "Default 'manage_options'."
        }
      ],
      "anchor": "/docs/wp-self-test/hooks/#mmwp_self_test_capability",
      "source": "https://github.com/mammothwp/wp-self-test/blob/v2.2.5/src/Config.php#L39"
    },
    {
      "name": "mmwp_self_test_shim_enabled",
      "type": "filter",
      "group": "Gates and configuration",
      "dynamic": false,
      "deprecated": false,
      "since": "0.1.0",
      "summary": "Filter whether the WP_CLI shim is defined on web requests.",
      "params": [
        {
          "name": "$enabled",
          "type": "bool",
          "description": "Default: the dashboard is enabled."
        }
      ],
      "anchor": "/docs/wp-self-test/hooks/#mmwp_self_test_shim_enabled",
      "source": "https://github.com/mammothwp/wp-self-test/blob/v2.2.5/src/Config.php#L123"
    },
    {
      "name": "mmwp_self_test_ui_enabled",
      "type": "filter",
      "group": "Gates and configuration",
      "dynamic": false,
      "deprecated": false,
      "since": "0.6.0",
      "summary": "Filter whether the self-test dashboard (and its REST routes) are registered.",
      "params": [
        {
          "name": "$enabled",
          "type": "bool",
          "description": "Default: true unless the environment is `production`."
        },
        {
          "name": "$environment",
          "type": "string",
          "description": "`WP_ENV` or `wp_get_environment_type()`."
        }
      ],
      "anchor": "/docs/wp-self-test/hooks/#mmwp_self_test_ui_enabled",
      "source": "https://github.com/mammothwp/wp-self-test/blob/v2.2.5/src/Config.php#L103"
    },
    {
      "name": "mmwp_self_test_booted",
      "type": "action",
      "group": "Lifecycle",
      "dynamic": false,
      "deprecated": false,
      "since": "0.1.0",
      "summary": "Fires once the self-test package has booted.",
      "params": [
        {
          "name": "$path",
          "type": "string",
          "description": "Directory of the booted copy."
        },
        {
          "name": "$version",
          "type": "string",
          "description": "Version of the booted copy."
        }
      ],
      "anchor": "/docs/wp-self-test/hooks/#mmwp_self_test_booted",
      "source": "https://github.com/mammothwp/wp-self-test/blob/v2.2.5/src/Loader.php#L128"
    },
    {
      "name": "mmwp_self_test_enabled",
      "type": "filter",
      "group": "Lifecycle",
      "dynamic": false,
      "deprecated": false,
      "since": "0.7.0",
      "summary": "Filter whether the self-test package boots on this request (surfaces, manifests, dashboard, commands and abilities).",
      "params": [
        {
          "name": "$enabled",
          "type": "bool",
          "description": "Default: true unless the environment is `production`."
        },
        {
          "name": "$environment",
          "type": "string",
          "description": "`WP_ENV` or `wp_get_environment_type()`."
        }
      ],
      "anchor": "/docs/wp-self-test/hooks/#mmwp_self_test_enabled",
      "source": "https://github.com/mammothwp/wp-self-test/blob/v2.2.5/src/Loader.php#L168"
    },
    {
      "name": "mmwp_self_test_manifest",
      "type": "filter",
      "group": "Lifecycle",
      "dynamic": false,
      "deprecated": false,
      "since": "0.1.0",
      "summary": "Filter one parsed manifest before its cases are built.",
      "params": [
        {
          "name": "$manifest",
          "type": "array",
          "description": "Parsed manifest (`version`, `cases`)."
        },
        {
          "name": "$path",
          "type": "string",
          "description": "Manifest file path."
        },
        {
          "name": "$plugin",
          "type": "string",
          "description": "Owning plugin slug."
        }
      ],
      "anchor": "/docs/wp-self-test/hooks/#mmwp_self_test_manifest",
      "source": "https://github.com/mammothwp/wp-self-test/blob/v2.2.5/src/Manifest.php#L96"
    },
    {
      "name": "mmwp_self_test_register",
      "type": "action",
      "group": "Lifecycle",
      "dynamic": false,
      "deprecated": false,
      "since": "0.1.0",
      "summary": "Register self-test manifests.",
      "params": [
        {
          "name": "$registry",
          "type": "Registry",
          "description": "Call `$registry->register($slug, $manifest_path, $opts)`."
        }
      ],
      "anchor": "/docs/wp-self-test/hooks/#mmwp_self_test_register",
      "source": "https://github.com/mammothwp/wp-self-test/blob/v2.2.5/src/Self_Test.php#L125"
    },
    {
      "name": "mmwp_self_test_ability_definitions",
      "type": "filter",
      "group": "Surfaces and runs",
      "dynamic": false,
      "deprecated": false,
      "since": "0.1.0",
      "summary": "Filter the self-test ability definitions before registration.",
      "params": [
        {
          "name": "$definitions",
          "type": "array<string,array>",
          "description": "Definitions keyed by ability name."
        }
      ],
      "anchor": "/docs/wp-self-test/hooks/#mmwp_self_test_ability_definitions",
      "source": "https://github.com/mammothwp/wp-self-test/blob/v2.2.5/src/Surfaces/Abilities.php#L77"
    },
    {
      "name": "mmwp_self_test_completed",
      "type": "action",
      "group": "Surfaces and runs",
      "dynamic": false,
      "deprecated": false,
      "since": "0.1.0",
      "summary": "Fires after a self-test run completed.",
      "params": [
        {
          "name": "$report",
          "type": "array",
          "description": "The report that was stored."
        }
      ],
      "anchor": "/docs/wp-self-test/hooks/#mmwp_self_test_completed",
      "source": "https://github.com/mammothwp/wp-self-test/blob/v2.2.5/src/Runner.php#L194"
    }
  ]
}