Filter: wpt_custom_truncate

apply_filters( 'wpt_custom_truncate', $post_status, $update, $post_ID, $repost, $reference ) → {string}

Filter an update template that does not contain any XPoster template tags.

Parameters:
Name Type Description
$post_status string

Text to status update truncated to maximum allowed length.

$update string

Original passed text.

$post_ID int

Post ID.

$repost bool

Boolean flag that indicates whether this is being reposted.

$reference int

Pass reference (1).

Source:
Returns:
Type
string

apply_filters( 'wpt_custom_truncate', $post_update, $update, $post_ID, $repost, $reference ) → {string}

Filter an update template after tags have been parsed but prior to truncating for length.

Parameters:
Name Type Description
$post_update string

Text to Tweet truncated to maximum allowed length.

$update string

Original passed text.

$post_ID int

Post ID.

$repost bool

Boolean flag that indicates whether this is being reposted.

$reference int

Pass reference (2).

Source:
Returns:
Type
string

apply_filters( 'wpt_custom_truncate', $post_update, $update, $post_ID, $repost, $reference ) → {string}

Filter a status update template after all content checks are completed.

Parameters:
Name Type Description
$post_update string

Text to status update truncated to maximum allowed length.

$update string

Original passed text.

$post_ID int

Post ID.

$repost bool

Boolean flag that indicates whether this is being reposted.

$reference int

Pass reference (3).

Source:
Returns:
Type
string