Skip to content

wpt_max_length

github-actions[bot] edited this page Jun 14, 2026 · 1 revision

Filter the max length array used for calculating status update truncation.

Auto-generated Example

add_filter(
   'wpt_max_length',
    function(
        array $values,
        $service
    ) {
        // Your code here.
        return $values;
    },
    10,
    2
);

Parameters

  • array $values Array with various values used for calculating how long your status update can be.
  • $service

Returns

array

Files

apply_filters( 'wpt_max_length', $values, $service )

← All Hooks

Clone this wiki locally