Filter: wptt_shorten_link

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

Parameters:
Name Type Description
$thispostlink string

The passed bookmark link.

$thislinkname string

The provided link title.

$post_ID bool

False, because links don't have post IDs.

$test bool

'link' to indicate a link is being shortened.

Source:
Returns:
Type
string

Filter the URL passed when running a test function.

Parameters:
Name Type Description
$testurl string

Unshortened test URL.

$title string

Title text to use for URL shortener.

$post_ID int | bool

Post ID. Default false.

$testing bool

In testing mode. Default true.

Source:
Returns:
Type
string

Run filters that shorten links.

Parameters:
Name Type Description
$permalink string

The post permalink.

$title string

The post title.

$post_ID int

The post ID.

$test bool

False because this is not a test cycle.

Source:
Returns:
Type
string