LLMS_Abstract_Privacy::add_eraser( string $id, string $name, mixed $callback )
Register an eraser.
Parameters Parameters
- $id
-
(string) (Required) Eraser ID.
- $name
-
(string) (Required) Human-readable eraser name.
- $callback
-
(mixed) (Required) Callback function (callable).
Return Return
(array)
Source Source
File: includes/abstracts/llms.abstract.privacy.php
public function add_eraser( $id, $name, $callback ) { $this->erasers[ $id ] = array( 'eraser_friendly_name' => $name, 'callback' => $callback, ); return $this->erasers; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.18.0 | Introduced. |