url_shorten


url_shorten ( $url, $length = 35 )

Parameters:
  • (string) $url URL to shorten.
  • (int) $length Optional. Maximum length of the shortened URL. Default 35 characters.
Returns:
  • (string) Shortened URL.
Defined at:
Change Log:
  • 4: .

Description

Shorten a URL, to be used as link text.

Related Functions

do_shortcode, sort_menu, strip_shortcodes, remove_shortcode, the_shortlink

Top Google Results

User discussions

wpseek mobile