Appearance
JavaScript Files
JavaScript resource files can be added to back-end as well as front-end pages.
✨ Example - Reading Progress Bar
This example adds a reading progress bar to the page header.

How To Use
A JS file can be enabled in the List View. It supports five options:
- Disabled - Disables the JS.
- Admin Enabled - Adds JS to back-end pages.
- Public Enabled - Adds JS to front-end pages.
- Both Enabled - Adds JS to back-end and front-end pages.
- URL Enabled - Enables the JS through a unique URL.

Back-End
With the Code Manager, you can add your own JavaScript code to the back-end. This can be particularly useful for plugins like WP Data Access that support apps in the back-end.
Front-End
With the Code Manager, you can add your own JavaScript code to the front-end. This can be particularly useful for plugins like WP Data Access that support apps in the front-end.
URL
A URL enabled JS file is not added to back-end and front-end pages automatically. Instead, it can be added when needed.

✨ Example - onAppOpen Hook
Add the
Reading Progress Barexample to a WP Data Access app.
js
((loadScript, loadStyle) => {
loadScript("/wp-json/cm/js/?code_id=381", "myReadingProgressBar")
})