Filter: wpt_do_shortening

apply_filters( 'wpt_do_shortening', $shrink, $shortener, $url, $post_title, $post_ID, $testmode ) → {string}

Apply a custom shortener to your Tweet. Return false to allow the settings to parse the URL or a URL to shortcircuit plugin settings.

Parameters:
Name Type Description
$shrink bool

False prior to shortening.

$shortener string

Shortener selected in settings.

$url string

Full permalink URL to post.

$post_title string

Title of source post.

$post_ID int

Post ID.

$testmode bool

True if running a test of XPoster.

Source:
Returns:
Type
string