Skip to content

Commit

Permalink
option-type multi description update
Browse files Browse the repository at this point in the history
  • Loading branch information
moldcraft committed May 31, 2015
1 parent 875582f commit 65ea4a5
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions options/built-in-option-types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,17 @@ Select multiple choices from different sources: posts, taxonomies, users or a cu
Multi
-----

Option with another options in it.
Group any options database values under a single array key.
This option has no design, inner options will look the same as other options (it's like the ``group`` container).

.. code-block:: php
// database value structure
'option_type_multi_id' => array(
'inner_option_1' => ...
'inner_option_2' => ...
)
.. code-block:: php
Expand All @@ -340,8 +350,8 @@ Option with another options in it.
'desc' => __('Description', 'fw'),
'help' => __('Help tip', 'fw'),
'inner-options' => array(
'option-1' => array( 'type' => 'text' ),
'option-2' => array( 'type' => 'textarea' ),
'option_1' => array( 'type' => 'text' ),
'option_2' => array( 'type' => 'textarea' ),
)
)
Expand Down

0 comments on commit 65ea4a5

Please sign in to comment.