Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #34140, comment 1


Ignore:
Timestamp:
10/04/2015 04:29:55 AM (9 years ago)
Author:
westonruter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34140, comment 1

    initial v1  
    77To save a value for a custom type, use the action `customize_update_{$this->type}`.
    88
    9 Or, which can be much easier to manager, just subclass `WP_Customize_Setting` and then override the `value`, `preview`, and `update` methods respectively.
    10 
    11 To use a custom setting subclass, instead of doing:
     9Or, which can be much easier to manage, just subclass `WP_Customize_Setting` and then override the `value`, `preview`, and `update` methods respectively. To use such a custom setting subclass, instead of doing:
    1210
    1311{{{