Server IP : 170.150.155.74 / Your IP : 18.117.244.136 Web Server : Apache/2.4.53 (Debian) System : Linux b22bf132354b 5.4.0-162-generic #179-Ubuntu SMP Mon Aug 14 08:51:31 UTC 2023 x86_64 User : www-data ( 33) PHP Version : 7.4.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/plugins/wordpress-seo/inc/ |
Upload File : |
<?php /** * WPSEO plugin file. * * @package WPSEO */ /** * Helps with creating shortlinks in the plugin. */ class WPSEO_Shortlinker { /** * Builds a URL to use in the plugin as shortlink. * * @param string $url The URL to build upon. * * @return string The final URL. */ public function build_shortlink( $url ) { return YoastSEO()->helpers->short_link->build( $url ); } /** * Returns a version of the URL with a utm_content with the current version. * * @param string $url The URL to build upon. * * @return string The final URL. */ public static function get( $url ) { return YoastSEO()->helpers->short_link->get( $url ); } /** * Echoes a version of the URL with a utm_content with the current version. * * @param string $url The URL to build upon. * * @return void */ public static function show( $url ) { YoastSEO()->helpers->short_link->show( $url ); } /** * Gets the shortlink's query params. * * @return array The shortlink's query params. */ public static function get_query_params() { return YoastSEO()->helpers->short_link->get_query_params(); } }