Application FeaturesThe application contains the following features:
- Front End
- User Registration Login
- Custom Post Type (vehicles / invoices) Creation / Removal / Edits
- Content filtering
- content search
- mailing, printing, phone calls
- Admin User Approval
- Admin Content Management and Edits
Coding Approach / Used PluginsTo reduce the application in size and assure its scalability we’ve decided to use available Gravity Forms filters and hooks along with the power of Custom Post Types. The project is also using the Timber plugin and has been built with the Chisel generator framework provided by Xfive.co. Chisel, being a gulp based tool allows us to modularize .css and .js code, assuring proper and easy to maintain code structure. Once compiled the code is merged, minimized and deferred giving us a solid base for a mobile-optimized project.Gravity forms plugin was used to setup all Front End facing forms. Its hooks and filters (some of these have been explained by us in the Gravity Forms blog series) were combined with ACF created post fields. Upon each form submission, the data is being saved as either Invoice or Vehicle directly inside the WordPress database.
Sample Code SnippetsThe section covers sample Gravity Forms code snippets. The plugin has a lot of nice hooks that allow one to execute any code after the occurrence of a specific action, for instance: form submission, form validation, or form rendering. Similarly, the latter gives one an ability to pre-populate Gravity Form’s form with any arbitary data. In other words, we fetched the data from the database, pre-populating the form with user input values.1. Gravity Forms Login Submission Handler 2. ACF to Gravity Forms pre-population
SummaryVanilla WordPress is an extremely powerful piece of software. Custom Post Types, Custom Taxonomies or built-in APIs not only give one a lot of valuable tools to create a fully-fledged application but also deliver a solid base for a scalable platform. Besides wise use of certain plugins gives one an ability to extend the default functionality in nearly any suitable way.
LoopholesWith all that said there are some potential problems that some of you may not be aware of while creating a WordPress application. These are associated with a couple of factors:
- Code Quality
- Ongoing Support
Final WordsIn conclusion, WordPress application development is not an easy task. As a result, we always try to take into account the fact that some other team may work after us and we try to keep the code as clean and well written as possible. Furthermore, programming is not an easy task. It may be frustrating, it may require a lot of iterations, fixes, debugging, patience, ongoing maintenance, code updates and support.We hope that you found this article useful and interesting. If you would like to learn more about WordPress based application development or would like to have a similar app created do not hesitate to leave a comment down below or reach out to us!
NEED HELP WITH A SIMILAR TASK
Codeable is the only WordPress freelancer platform. We match customers to the best WordPress experts. We help customers solve any WordPress problem.