Exchange/it exchange register addon category

From IThemes Codex
Revision as of 08:52, June 13, 2013 by Gaarai (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

Register an Add-on category with iThemes Exchange


When registering an add-on category, you can set required/default support features that any add-on

in this category will be required to have. If add-ons register in this category without a key

they will be provided with a the value registered to the add-on category by default.

- eg: $options['supports'] = array( 'feature' => 'default_value' );

History

Parameters

<?php it_exchange_register_addon_category( $slug, $name, $description, $options = array() ); ?>
  • string $slug var for identifying the add-on in code
  • string $name name of add-on used in UI
  • string $description description of the add-on
  • array $options key / value pairs.

Returns

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox