Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • peterburgey
    Participant

    Hi,

    I’m new here. Hope someone can help me in this issue:

    I’ll try to access URL parameters like http://www.xyz.de/?param=test in a shortcode. Is this possible or not?

    Best Regards for any hint
    Peter

    Hi @peterburgey,

    Thanks for using Shortcoder.

    I’m sorry to say that this feature is not supported considering it is not safe to display query value directly on the page. Users may execute malicious code which will execute directly on the page.

    I would suggest writing your own shortcode using PHP so that you can clean the query value before working with it – https://codex.wordpress.org/Shortcode_API

    Thanks,
    Aakash

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Subscribe for updates

Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter