Jump to main content Jump to doc navigation

modX::unsetPlaceholders

Unset multiple placeholders, either by prefix or an array of keys.

Syntax

API Doc: modX::unsetPlaceholders()

void unsetPlaceholders (string|array $keys)

Example

Unset the 'my.name' and 'my.email' Placeholders.

$modx->unsetPlaceholders(array('my.name','my.email'));

Unset all Placeholders that are prefixed with 'my.'

$modx->unsetPlaceholders('my.');

See Also