Front End: Adding scripts - dotherightthing/wpdtrt-plugin-boilerplate GitHub Wiki

Summary

DTRT WordPress Plugin Boilerplate handles loading of plugin JavaScript files.

Status

  • Stable @ 1.5.3
  • Needs further documentation re loading of additional scripts

Usage

Default scripts

  • frontend-es5.js is automatically appended to the bottom of public facing pages
  • backend-es5.js is automatically appended to admin pages

These files are editable at:

  • ./js/frontend.js (plugin)
  • ./js/backend.js (boilerplate)

jQuery may be used, as this is bundled with WordPress.