Skip to content

Commit

Permalink
info about megamenu item options
Browse files Browse the repository at this point in the history
  • Loading branch information
moldcraft committed Sep 21, 2016
1 parent 0e94b0c commit 9fc3454
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions extension/megamenu/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -216,3 +216,15 @@ Overwrite the Walker
}
add_filter('wp_nav_menu_args', '_filter_theme_ext_mega_menu_wp_nav_menu_args');
}
Item Custom Options
-------------------

1. :ref:`Overwrite <extension-directory-structure>` these `options <https://github.com/ThemeFuse/Unyson-MegaMenu-Extension/tree/master/options>`__ in your theme.
2. Get the saved db value (it has the :ref:`same structure <multi-picker-get-db-value>` as ``multi-picker`` option-type value)

.. code-block:: php
if ($item_type = fw_ext_mega_menu_get_db_item_option($item_id, 'type')) {
$values = fw_ext_mega_menu_get_db_item_option($item_id, $item_type);
}
2 changes: 2 additions & 0 deletions extensions/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ They can be installed via Extensions page, bundled with a theme or loaded from a
:local:
:backlinks: top

.. _extension-directory-structure:

Directory Structure
-------------------

Expand Down

0 comments on commit 9fc3454

Please sign in to comment.