最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

php - How to create an Email Subscription input in WordPress?

matteradmin4PV0评论

I can't find a good guide to create a simple input, that allows the user to submit his email and add it to a user's email's database in WordPress and also auto send the user a confirm email.

I'm building a theme in WordPress from scratch, and I'm using PHP and jQuery plus Bootstrap (not that it's important).

I can't find a good guide to create a simple input, that allows the user to submit his email and add it to a user's email's database in WordPress and also auto send the user a confirm email.

I'm building a theme in WordPress from scratch, and I'm using PHP and jQuery plus Bootstrap (not that it's important).

Share Improve this question asked Mar 26, 2019 at 21:43 warzonemasterwarzonemaster 51 silver badge3 bronze badges 4
  • Use the Contact 7 plugin. Generate a shortcode and put it where you want. – Jos Commented Mar 26, 2019 at 22:23
  • @Jos theres alot of CONTACT 7 plugins, can you direct me ? – warzonemaster Commented Mar 26, 2019 at 22:30
  • Apologies, I meant Contact Form 7. – Jos Commented Mar 26, 2019 at 22:31
  • @Jos it doesnt work very well for me, to complicated. I need something simple with no plugin or short code. I need with PHP to create one input that you enter a value and its get inside my database.. – warzonemaster Commented Mar 26, 2019 at 22:40
Add a comment  | 

1 Answer 1

Reset to default 0

Although this is not the place for plugin recommendations, there are several 'subscriber' plugins available in the repository. I've used the "Email Subscribers" plugin for a while. It works well, although there was some difficulties with it when they did a major revision to their version 4. (Which is a tale about fully testing code.)

If you don't want a plugin, then you will have to write your own code. A bit complex to describe here. But there are many 'googles' (or 'bings' or 'ducks') that can help you with the process. So start there.

Post a comment

comment list (0)

  1. No comments so far