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.


Top ↑

Parameters

$link

(string)The HTML code for the link to the Registration or Admin page.


Top ↑

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.


Top ↑

Source

File: wp-includes/general-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
1.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More