WPDev.one
Core Function
View Source on Trac ↗

register_uninstall_hook()

register_uninstall_hook( mixed $file, mixed $callback )

Sets the uninstallation hook for a plugin.

Parameters 2 required

Name / Type Description
$file
string

Plugin file.

Required
callable

$callback The callback to run when the hook is called. Must be a static method or function.

Required

Return Value

(void)
No return value description available.

Function Information

Since Version
2.7.0
Source File
wp-includes/plugin.php
Advertisement