Filter: wpt_custom_truncate

apply_filters( 'wpt_custom_truncate', string, string, int, bool, int )

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

Parameters:
Name Type Description
string

$post_status Text to status update truncated to maximum allowed length.

string

$update Original passed text.

int

$post_ID Post ID.

bool

$repost Boolean flag that indicates whether this is being reposted.

int

$reference Pass reference (1).

Source:
Returns:

string

apply_filters( 'wpt_custom_truncate', string, string, int, bool, int )

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

Parameters:
Name Type Description
string

$post_update Text to Tweet truncated to maximum allowed length.

string

$update Original passed text.

int

$post_ID Post ID.

bool

$repost Boolean flag that indicates whether this is being reposted.

int

$reference Pass reference (2).

Source:
Returns:

string

apply_filters( 'wpt_custom_truncate', string, string, int, bool, int )

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

Parameters:
Name Type Description
string

$post_update Text to status update truncated to maximum allowed length.

string

$update Original passed text.

int

$post_ID Post ID.

bool

$repost Boolean flag that indicates whether this is being reposted.

int

$reference Pass reference (3).

Source:
Returns:

string