Filter: wptt_shorten_link

Customize the URL shortening of a link in the link manager.

Parameters:
Name Type Description
string

$thispostlink The passed bookmark link.

string

$thislinkname The provided link title.

bool

$post_ID False, because links don't have post IDs.

bool

$test 'link' to indicate a link is being shortened.

Source:
Returns:

string

Filter the URL passed when running a test function.

Parameters:
Name Type Description
string

$testurl Unshortened test URL.

string

$title Title text to use for URL shortener.

int|bool

$post_ID Post ID. Default false.

bool

$testing In testing mode. Default true.

Source:
Returns:

string

Run filters that shorten links.

Parameters:
Name Type Description
string

$permalink The post permalink.

string

$title The post title.

int

$post_ID The post ID.

bool

$test False because this is not a test cycle.

Source:
Returns:

string