register WordPress Filter Hook
The register_activation_hook() function is used to execute a piece of code when a plugin is activated. This is useful for setting up plugin options and performing initial tasks.
apply_filters( 'register', string $link ) #
Filters the HTML link to the Registration or Admin page.
Description
Users are sent to the admin page if logged-in, or the registration page if enabled and logged-out.
Parameters
- $link
(string)The HTML code for the link to the Registration or Admin page.
More Information
The hook filters the HTML link to the Registration or Admin page. Users are sent to the admin page if logged-in, or the registration page if enabled and logged-out.
Source
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |