URL Parameter Decoder WordPress Plugin

This plugin decodes URL parameters and allows you to display them using shortcodes.
It supports both base64-encoded and URL-encoded parameters.

Plugin Description and Usage

This plugin decodes URL parameters and allows you to display them using shortcodes. It supports both base64-encoded and URL-encoded parameters, and you can even mix different encodings in the same URL.

Supported Encodings

  • Base64 Encoding: Useful for passing binary data or strings that may contain special characters.
  • URL Encoding: Also known as Percent-encoding, it's used to encode special characters in a URL.
  • Plain Text: The plugin will also accept and pass through unencoded text.

Use Cases:

Email Marketing Campaigns:

Pass encoded campaign parameters using links
Tracking source information
Dynamic content based on URL parameters

Direct Mail Campaigns:

Pass encoded parameters through custom QR codes.
Dynamic content based on URL parameters

Zoom Meeting Chat:

Pass encoded parameters through URL's in chat
Dynamic content based on URL parameters

User Personalization:

Displaying personalized content
Handling user preferences via URL
Dynamic page customization

Integration Systems:

Processing encoded data from external systems
Handling complex parameter passing
Safe URL parameter processing

This plugin provides a robust solution for handling encoded URL parameters in WordPress, with strong emphasis on security, flexibility, and ease of use. It's particularly useful for sites that need to process encoded parameters while maintaining clean URLs and secure data handling.

Example Usage Scenarios:

Basic Parameter Decoding:

example.com/page/?vip=VG9tIE1hY2s=

Shortcode: [decode_vip] Output: "Tom Mack"

Multiple Parameters:

example.com/page/?vip=VG9tIE1hY2s=&linkedin=aHR0cHM6Ly93d3cubGlua2VkaW4uY29tL2luL3RvbS1tYWNrLW1hcmtldGluZy1nZW5pdXMv&pic=aHR0cHM6Ly9tZWRpYS5saWNkbi5jb20vZG1zL2ltYWdlL3YyL0M0RTAzQVFHa2VFRFVGY0s5Z0EvcHJvZmlsZS1kaXNwbGF5cGhvdG8tc2hyaW5rXzIwMF8yMDAvcHJvZmlsZS1kaXNwbGF5cGhvdG8tc2hyaW5rXzIwMF8yMDAvMC8xNTIzNjQzMTMwMTA4P2U9MTczNjM4MDgwMCZ2PWJldGEmdD1kVDZKcjNaZ3dLX19Fem9rTmxjdGU3SXBsdVlGZXd1bE1IOFhKcDhGaUhV

Shortcode: [decode_vip] Output: "Tom Mack"

Shortcode: [decode_linkedin] Output: https://www.linkedin.com/in/tom-mack-marketing-genius/

Shortcode: [decode_pic] Output: https://media.licdn.com/dms/image/v2/C4E03AQGkeEDUFcK9gA/profile-displayphoto-shrink_200_200/profile-displayphoto-shrink_200_200/0/1523643130108?e=1736380800&v=beta&t=dT6Jr3ZgwK__EzokNlcte7IpluYFewulMH8XJp8FiHU

Display the image url: <p><img src="[decode_pic]" alt="" width="300" height="300" /></p>

Default Values:

URL: example.com/page/
Shortcode: [decode_fname]
Output: (configured default value if no parameter present)

Constructing a Query String

You can construct a query string using one or more parameters. Here's an example:

https://yoursite.com/your-page/?param1=SGVsbG8gV29ybGQh&param2=Hello World

In this example:

  • param1 is base64-encoded ("Hello World!")
  • param2 is URL-encoded ("Hello World")

You can mix and match encodings as needed. The plugin will attempt to decode base64 first, then URL encoding, and if both fail, it will use the raw value.

Shortcode System

The plugin provides two types of short codes for each parameter:[decode_paramname] - Shows the decoded value[encoded_paramname] - Shows the original encoded value

The original encoded value shortcode is useful for creating outbound links carrying the original content. We use this to carry a name and email to the check out page and prefill the order form.

Set up your parameters and optional default values. The corresponding short codes will be automatically generated.

Parameters and Default Values

Set up your parameters and optional default values here. The corresponding shortcodes will be automatically generated.

How Default Values Work

Default values are used when no URL parameter is present for a given shortcode. Here's how it works:

  1. If a URL parameter is present, it will be used (after decoding if necessary).
  2. If no URL parameter is present, the plugin will use the default value you've set here.
  3. If no URL parameter is present and no default value is set, the shortcode will display nothing.

This allows you to have fallback content when URL parameters are not provided, ensuring your pages always display meaningful content.

Enable on Posts

Select the posts where you want to enable the URL Parameter Decoder. This allows you to use the shortcodes only on specific posts.


Enable on Pages

Select the pages where you want to enable the URL Parameter Decoder. This allows you to use the shortcodes only on specific pages.
















Security Features

This plugin implements several security measures to ensure safe operation:

  • User Capability Check: Only users with the "manage_options" capability can access this settings page.
  • Nonce Verification: Form submissions are protected against CSRF attacks using WordPress nonces.
  • Input Sanitization: All user inputs are sanitized before being saved or used.
  • Output Escaping: All output is properly escaped to prevent XSS attacks.
  • Reserved Parameter Protection: WordPress reserved parameters are blocked to prevent conflicts.
  • Selective Activation: The plugin can be enabled only on specific posts and pages.
  • Safe Decoding: The plugin uses safe decoding methods to handle base64 and URL-encoded data.

These security measures help protect your WordPress site from common vulnerabilities while using this plugin.

Download From WordPressNow
  • Infinite Features Available

    Aliquam pellentesque ipsum nisl, in feugiat erat sagittis sit amet.

  • Integrated Membership System

    Aliquam pellentesque ipsum nisl, in feugiat erat sagittis sit amet.

  • Facebook Comments Included

    Aliquam pellentesque ipsum nisl, in feugiat erat sagittis sit amet.

  • Mobile Responsive Pages

    Aliquam pellentesque ipsum nisl, in feugiat erat sagittis sit amet.

  • Class Aptent Taciti

    Donec dignissim id orci sed elementum. In ornare consequat lacus ac imperdiet.

  • Vivamus Elementum

    Vivamus elementum ipsum feugiat risus fermentum, quis tempor erat bibendum.

  • Nullam Elementum

    Aliquam ultrices suscipit libero, et vehicula massa cursus ut. Vivamus dapibus fermentum tortor in iaculis.

  • Consequat Euismod

    Fusce elit risus, condimentum id felis et, sodales faucibus odio. Proin laoreet ac urna.