tp TouchPointWP Utilities Cleanup - TenthPres/TouchPoint-WP GitHub Wiki

tp\TouchPointWP\Utilities\Cleanup

Used for data cleanliness and maintenance tasks.


Constants

Constant Visibility Type Value
CRON_HOOK public \tp\TouchPointWP\TouchPointWP::HOOK_PREFIX . "cleanup_cron_hook"

Methods

cronCleanup

Called by the cron task. (and also by ::api() )

public static cronCleanup(mixed $verbose = false): void
  • This method is static. Parameters:
Parameter Type Description
$verbose mixed

See Also:

  • \tp\TouchPointWP\Utilities\api()

api

Handle API requests - mostly, just a way to forcibly trigger the cleanup process

public static api(array $uri): bool
  • This method is static. Parameters:
Parameter Type Description
$uri array The request URI already parsed by parse_url()

Return Value:

False if endpoint is not found. Should print the result.