The WordPress Shortcode Function is a powerful tool that allows you to shorten links directly from your WordPress website, without the need for a separate plugin. This feature is easy to set up and works with all versions of WordPress and any theme. All links shortened using this function will be safely stored in your account for tracking and analysis.
- Copy your unique PHP code provided by the service.
- Go to the WordPress admin panel and navigate to Appearance > Theme File Editor.
- On the right side, find and click on Theme Functions (functions.php)
- Paste the code at the very end of the file and save the changes.
With this function, you can easily shorten links and track their performance within your WordPress site, giving you valuable insights and helping you improve your website's overall performance.
Note:Do not share this code with anyone you do not trust as they will have access to the full API and essentially your account.
Return to the documentation click → Here