M ChartM Chart
Users
Highcharts
Developers
Download
GitHub
Users
Highcharts
Developers
Download
GitHub
  • Developer Guide

    • Developer Guide
    • PHP Hooks & Filters
    • JavaScript Events
    • Admin UI JavaScript Hooks
    • Migrating to v2

Developer Guide

M Chart is extensible via PHP hooks and a JavaScript wp.hooks API. This section documents the available hooks for themes and plugins that want to customize chart behavior.

Quick Links

  • PHP Hooks & Filters — Server-side action and filter hooks
  • JavaScript Events — Front-end CustomEvent API (v2.0+)
  • Admin UI Hooks — wp.hooks API for the React admin interface
  • Migrating to v2 — Breaking changes and upgrade guide

Build Environment

To work on the plugin source you will need Node.js installed. Then from the plugin root:

npm install

Build commands:

CommandDescription
npm run buildBuild everything (CSS, JS, block, admin app)
npm run build:cssBuild CSS only
npm run build:jsMinify JS helpers only
npm run build:blockBuild the Gutenberg block only
npm run build:admin-uiBuild the React admin app only

Watch commands:

CommandDescription
npm run watchWatch everything
npm run watch:admin-uiWatch the React admin app only

Tips

For additional build commands, translation tooling, and test setup, see DEVELOPERS.md in the repository.

Last Updated: 4/16/26, 6:12 PM
Contributors: Jamie Poitra
Next
PHP Hooks & Filters