Advertisement
verygoodplugins

Untitled

Jan 29th, 2017
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. 'm going to give you an assignment each Monday that you should complete by Friday, and then I will review over the weekend and send you notes the following Monday, along with the next assignment. Rein will keep an eye on everything and be available to help in any way he can. We'll aim to spend about 25% of your time on these training projects.
  2.  
  3. We'll start with basic practice exercises and over the next month or two we'll try and do more exercises that add some value to our products. I'll make each one have clear objectives and be finish-able within a week (10 hours) of your time. If you can't finish the project in that amount of time, still send it to me on Friday and I'll review where you've gotten and provide notes.
  4.  
  5. We'll be focusing on efficiency in these projects so try and find the best solution possible in the shortest time possible.
  6.  
  7. Wherever possible, try to use and learn more about core WordPress functions, actions, and filters. There are hundreds of them (some more important than others) but it's important to become familiar with the common ones, as we'll use them on most projects we work on.
  8.  
  9.  
  10. FIRST PROJECT - HELLO BAR
  11.  
  12. For this project you will be creating a WordPress plugin that displays a "Hello Bar" greeting when people first visit a website. Once you've learned the skills required, you should be able to complete a project like this in one to two hours. I think based on my experience you should be able to finish it within 8. Please track your time as "Hello Bar" under the "Training" project in Toggl.
  13.  
  14. What you will be practicing / focusing on:
  15. WordPress coding standards
  16. The structure for a basic plugin
  17. WordPress actions and filters
  18. Using AJAX in plugins
  19. Setting cookies in PHP
  20. Enqueuing scripts and styles
  21. Creative problem solving
  22. Debugging
  23. Commenting
  24.  
  25. What to do:
  26. You'll be building a plugin that creates a "Hello Bar". It should look exactly like the blue bar in the attached mockup.
  27. The plugin should follow WordPress coding standards and be contained in a single class
  28. When a user first visits the website, the bar should animate down from the top of the page
  29. If a user clicks the "X" button, the bar should animate up
  30. After a user clicks the X button, the bar should no longer be loaded or displayed on the website for that user for the next 30 days (through the use of cookies)
  31. The plugin should look and behave the same way when installed on different websites with different themes
  32. Please comment your code and make it easy to read and properly spaced / indented wherever possible.
  33.  
  34. Suggested reading:
  35.  
  36. https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/
  37. https://premium.wpmudev.org/blog/adding-scripts-and-styles-wordpress-enqueueing/
  38. https://codex.wordpress.org/AJAX_in_Plugins
  39. https://premium.wpmudev.org/blog/set-get-delete-cookies/
  40. https://codex.wordpress.org/Plugin_API
  41. https://www.sitepoint.com/how-to-set-get-and-delete-cookies-in-wordpress/
  42. https://codex.wordpress.org/Writing_a_Plugin
  43.  
  44.  
  45. Please let me know if you have any questions about the objectives. Otherwise I expect you to figure out the solutions to these problems using your own resources. There are multiple correct ways to approach this project, so just Google often, and use your best judgement. Good luck!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement