gcd_show_danger_zone

  1. Description
  2. Usage
  3. Parameters
  4. Since

Description

Filter whether the “Danger Zone” section should be shown in the plugin settings. Right now, the only utility in the Danger Zone is purging the Action Scheduler queue. Even if this filter is set to true, the user must have uninstall capabilities for GC Drip.

Usage

Applied globally

add_filter( 'gcd_show_danger_zone', 'my_custom_function' );

Parameters

$show_danger_zone bool

Whether the “Danger Zone” section should be shown in the plugin settings.

Since

  • 1.0.0 Hook added.