wp_register

SummerySummery

Display the Registration or Admin link.

Syntax

wp_register( string $before = '<li>', string $after = '</li>', bool $echo = true )

DescriptionDescription

Display a link which allows the user to navigate to the registration page if not logged in and registration is enabled or to the dashboard if logged in.

ParametersParameters

$before

(string) (Optional) Text to output before the link. Default <li>.

Default value: '<li>'

$after

(string) (Optional) Text to output after the link. Default </li>.

Default value: '</li>'

$echo

(bool) (Optional) Default to echo and not return the link.

Default value: true

ReturnReturn

(void|string) Void if $echo argument is true, registration or admin link if $echo is false.

SourceSource

File: wp-includes/general-template.php


			

ChangelogChangelog

Changelog
Version Description
1.5.0 Introduced.
Scroll to Top