• Resolved johnmontfx

    (@johnmontfx)


    I currently have a VPN running on the server which also hosts my WordPress website. I’ve been using PO for several years now and it’s a total lifesaver speed-wise.

    Part of my services is a VPN and I use a WordPress login check via a unix shell script to confirm access to the VPN. I’ve attempted to use Plugin Organizer to target this “file”, but I can’t seem to figure it out. I thought the file path would work, but it doesn’t seem to. I try to echo get_permalink in the login script but it is blank.

    Is this something that is possible to do? I’d love to get rid of all the ecommerce and forums cruff that I don’t need…

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeff Sterup

    (@foomagoo)

    Running PHP from a shell script won’t set any of the $_SERVER variables that are used by PO. So to make this work you would need to get those set to use in a plugin filter. It uses $_SERVER[‘REQUEST_URI’], $_SERVER[‘HTTP_HOST’], and $_SERVER[‘HTTPS’].

    Thread Starter johnmontfx

    (@johnmontfx)

    Great — thank you for the advice and taking the time to respond. I’ll try that out.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using PO with unix shell scripts’ is closed to new replies.