| @@ -26,8 +26,19 @@ | ||
| 26 | 26 | * 'sections' => array( 'media' ), // optional, default all |
| 27 | 27 | * 'script' => 'my-plugin-actions', // optional handle |
| 28 | 28 | * ] |
| 29 | 29 | * |
| 30 | + * `sections` entries match a section's **id** (`'media'`, | |
| 31 | + * `'cpt-atf-forms'` — auto-registered CPT sections are prefixed | |
| 32 | + * `cpt-`), a section's declared **post type slug** (`'atf-forms'`), | |
| 33 | + * or `'*'` for every section. Matching happens client-side. | |
| 34 | + * | |
| 35 | + * Timing: descriptors are re-collected when the window config is | |
| 36 | + * serialized for the browser (see | |
| 37 | + * the explorer app's per-dispatch payload), the same late | |
| 38 | + * pass that enqueues declared `script` handles — registering the | |
| 39 | + * filter any time during a normal bootstrap is fine. | |
| 40 | + * | |
| 30 | 41 | * @package OpenStation |
| 31 | 42 | */ |
| 32 | 43 | |
| 33 | 44 | defined( 'ABSPATH' ) || exit; |