Add helper function to deterime order type.
Shortened code.
Add documentation link.
Fixed documentation.
Add actions in the AppThemes init action hook.
Improved helper function.