Skip to content

wpt_shorteners

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

Filter available shorteners.

Auto-generated Example

add_filter(
   'wpt_shorteners',
    function(
        array $shorteners,
        int $shortener
    ) {
        // Your code here.
        return $shorteners;
    },
    10,
    2
);

Parameters

  • array $shorteners Array of shorteners by ID.
  • int $shortener Selected shortener.

Returns

array

Files

apply_filters( 'wpt_shorteners', $shorteners, $shortener )

← All Hooks

Clone this wiki locally