Repository navigation
Commit 6eea893
committed
Abilities API: document the show_in_abilities registration-timing contract
The core/settings ability snapshots the exposed settings when it registers
on wp_abilities_api_init, so a setting must be registered before that hook
fires to be exposed. Note this on the show_in_abilities register_setting()
argument so integrators know their register_setting() has to run earlier.1 parent 2746171 commit 6eea893
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3021 | 3021 | | |
3022 | 3022 | | |
3023 | 3023 | | |
3024 | | - | |
| 3024 | + | |
| 3025 | + | |
| 3026 | + | |
| 3027 | + | |
3025 | 3028 | | |
3026 | 3029 | | |
3027 | 3030 | | |
| |||
0 commit comments