Utils package
Last updated
Was this helpful?
Last updated
Was this helpful?
As we are using a multi-package-/mono repository we have the ability and advantage of modular package development. That means, coding which should be used in multiple plugins can be outsourced to an own package. This can also be done for PHP (), but this does not matter here.
With a main utils package in is generated automatically.
All of your plugins can use the factories defined in . They do a lot of work for you and implement a high standard for the following topics:
AJAX / XMLHttpRequest
handler with predefined interfaces so all your WP REST API endpoints are typed, see also .
ReactJS creation with a single function. That context must be used together with React .
Object-orientated class to coming from a localized PHP variable.