Skip to content

Developer Guidelines

Daniel L. Iser edited this page Apr 17, 2020 · 1 revision

Welcome to the Popup-Maker wiki!

Naming Conventions

Prefixes:

  • pum
  • PUM

Namespaces

Follow a pattern of {project}\{module}, or in this case PUM\{core|extension}

Examples:

  • PUM\Core
  • PUM\AdvancedTargeting
  • PUM\ExitIntent
  • PUM\Analytics

Functions

Coming soon..

Hooks & Filters

Should always be short, yet descriptive of the filter or action taking place.

PHP

  • prefix with pum_
  • optionally append extension prefix as well such as pum_atc_.
  • follow with underscored text.

Example: pum_settings_fields

JavaScript

  • prefix with pum.
  • optionally append extension prefix as well such as pum.atc.
  • follow with camelCase.

Example: pum.analyticsBeaconData