WPDev.one
Core Function
View Source on Trac ↗

wp_register()

wp_register( mixed $before = '<li>', mixed $after = '</li>', mixed $display = true )

Displays the Registration or Admin link.

Parameters 0 required

Name / Type Description
$before
string

Text to output before the link. Default `<li>`.

$after
string

Text to output after the link. Default `</li>`.

$display
bool

Default to echo and not return the link.

Return Value

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

Function Information

Since Version
1.5.0
Source File
wp-includes/general-template.php
Advertisement