How to build a wordpress plugin for adding functions to load files when writing reviews?

How to make a plugin that complements the standard comments form in WordPress with the ability to attach to the comment a picture or any other document (Excel, txt, csv, doc, zip). The picture should appear at the bottom after the text of the review, the attached file just as a link, also below.
Ready plugins as Comment Attachment and others are not interested.
You need to write your own with minimal functionality.
March 23rd 20 at 19:11
1 answer
March 23rd 20 at 19:13
Complete Your question with an answer to the following:
- What You want the answer to?
- Have You tried googling Your Question? The key query is "How to create a wordpress plugin".
- Have You read the Wordpress Codex on creating plugins?
- In what particular place of Your new plugin You have difficulties?
- What were the specific hooks in Your new plugin You have difficulties?
With WordPress just getting started, know php to a basic minimum level, so it's hard to sort out the code.

Tried to make on the basis of stata and other on them


- What You want the answer to?
And ideally the final code or in stages as you write it.

- Have You tried googling Your Question? The key query is "How to create a wordpress plugin".
Looking for has information on how to add regular text boxes and how to implement the uploading of files not found.

- In what particular place of Your new plugin You have difficulties?
Don't know how to implement the uploading of files, check the desired extensions. - kaia commented on March 23rd 20 at 19:16
To get started, create a clean(empty) plugin.
Select the method of programming that is convenient to You (OOP or procedural)
For uploading files You need to create a form with a button which the user can choose the desired file. Googled this moment. Next You need to file and save it. Try using POST via ajax. Do not rush immediately to bind to the comment system. You have to understand what's going on at the front and what on the server.

jQuery AJAX upload files to the server

Then zavyazalas on the right hooks and print Your form. - derrick_Cole commented on March 23rd 20 at 19:19

Find more questions by tags WordPress