• Hi all,

    Quick question, I know there are advanced notification plugins out there but I am interested in building one with Python as a project for my portfolio. I am in need of advanced notifications for woocommerce (email/text me with orders mostly). I know Python but no other languages. I want to somehow build and integrate this into my wp site. Is something like this possible and if so, any suggestions on how to go about it?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Your WP installation would need to be able to call PHP’s exec() so that an external Python script could be executed. Many hosts disable this function for improved security. Without it, in PHP, you’d have to make a HTTPS request for your .py file for it to execute. Doing it via HTTPS request will make it difficult to properly integrate into WP. exec() works much better. As long as exec() is usable, using Python is feasible.

    You might consider learning some PHP ?? You’ll need at least a little knowledge anyway in order to integrate your Python with WP. Why not learn a bit more and accomplish the entire thing in PHP? You must have some kind of programming aptitude or you wouldn’t be good with Python. With a reasonable aptitude, learning enough PHP to get by shouldn’t be too difficult.

    Like anything new, it’ll be frustrating at first, but I think you’ll be well served in the long run to learn at least some PHP coding.

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin using Python’ is closed to new replies.