• Hello all

    I have written a PHP application external to WordPress and now wish to plug it in. I have basically two questions. This is my first application, so help would be much appreciated.

    1. Getting mod_rewrite to send variables to my plugin.
    I need my to use mod_rewrite for my plugin. I want request https://domain.com/artists/ to activate a script, then https://domain.com/artists/x/ to be equivilent to the url https://domain.com/artists.php?artist_slug=x and in addition be able to send further information into the script – for example https://domain.com/artists/x/bio/ => https://domain.com/?artist_slug=x&mode=bio

    Once this is done.

    2. Getting input for the plugin from the user.
    Currently, my application used $_REQUEST to get the GET input, for the example, artist_slug and mode. What is the WordPress way of doing this – looking at a few plugins, it seems to be different, but I can’t quite work it out, so a straight explanation would really help.

    Thanks a lot

    All the best

    Alex

  • The topic ‘Hooking mod_rewrite and $_REQUEST’ is closed to new replies.