- Please run
make start
in order to launch docker installation - You can run
make lint
ormake fix
to see problems and automaticly fix them with the plugin. I used default wordpress set or rules. - After the successful instalation please visit http://localhost:8000/, follow instructions and setup the website.
- Go to http://localhost:8000/wp-admin
- Activate plugins in plugins section
- When you will activate woocommerce please import products from sample_product.csv in root directory of the project.
- Then please configure Socks Random Product plugin and put shortcode in any page. You will get random products.
- link is placed in Dashboard widget area and in admin left panel.
- the same answer.
- [random_products] returns the number of random products based on settings
- done in settings page of the plugin located in admin left panel
- it does.
- it does.
- wordpress admin dashboard API link1
- random products query functionality link1
- all other information was retrieved during development by googling specific questions, so different aspects were searched.
- I left not that much comments because the functionality itself is very simple, so just necessary comments in my opinion
- made several commits with simple explanation, in bigger projects I would follow a structure like CDF-124:settings-page-implementation or something like this.
- realization of one-command installation in docker
- done with composer. Also, plugins are installed via composer. Please see commands description.