Method
Unregister an action.
unregister_action( string|Theme_My_Login_Action $action )
public
Parameters
-
$actionstring|Theme_My_Login_Action - The action name or object.
Source
public function unregister_action( $action ) {
if ( ! $action instanceof Theme_My_Login_Action ) {
$action = $this->get_action( $action );
}
if ( $action instanceof Theme_My_Login_Action ) {
$action->remove_callback_hook();
unset( $this->actions[ $action->get_name() ] );
}
} View src/includes/class-theme-my-login.php, line 101 on GitHub
Uses
Used by
Changelog
| Version | Description |
|---|---|
| 7.0 | Introduced. |