Skip to content

Method

Get a link.

get_link( string $link )

public

Parameters

$link string
The link name.

Return

array|bool The link data if it exists or false otherwise.

Source

public function get_link( $link ) {
    if ( isset( $this->links[ $link ] ) ) {
        return $this->links[ $link ];
    }
    return false;
}

Changelog

VersionDescription
7.0 Introduced.