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).


Top ↑

Return Return

(array)


Top ↑

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;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.18.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.