WPSF Docs
  • Introduction
  • Overview
    • Introduction
  • Installation
    • Installation
    • Standard Configure
    • Override Configure
  • Options
    • Text
    • Textarea
    • Checkbox
      • Checkbox with Pages
      • Checkbox with Post
      • Checkbox with Categories
      • Checkbox with Tags
      • checkbox with CPT Categories
      • checkbox with CPT Posts
      • checkbox with CPT Tags
      • Checkbox with icheck
    • Radio
      • Radiobox Options
      • Radiobox with icheck
    • Select
      • Select with chosen script
      • Select with Select2 script
      • Select with Pages
      • Select with Posts
      • Select with Categories
      • Select with Tags
      • Select with CPT
      • Select with CPT Tags
      • Select with CPT Categories
    • Switcher
      • Switcher with Dependency
    • Number
    • Icon
    • Group
    • Upload
    • Background
    • Color Picker
    • Image Select
    • Typography
    • Backup
    • Heading
    • Wysiwyg
    • Image
    • Gallery
    • Sorter
    • Fieldset
    • Notice
    • Extendable
    • Accordion
    • Color Scheme
    • Content
    • Css Builder
    • Hidden
    • Image Size
    • Links
    • Typography Advanced
    • Tabs
  • Config
    • Framework Configure
    • Metabox Configure
    • Taxonomy Configure
    • Shortcode Configure
    • Customize Configure
  • Hooks
    • Configuration
      • Filterable Configure
    • Filter Reference
    • Action Reference
  • FAQ
    • How to Add New Field
    • How to Use Attributes
    • How to Use Dependency
    • How to create Customizer Live Preview
  • Credits
    • Credits
Powered by GitBook
On this page
  1. Options
  2. Switcher

Switcher with Dependency

Switcher with Dependency

array(
  'id'         => 'unique_option_604',
  'type'       => 'switcher',
  'title'      => 'Switcher Field',
  'default'    => true
),
array(
  'id'         => 'unique_option_1',
  'type'       => 'text',
  'title'      => 'Text Field',
  'dependency' => array( 'unique_option_604', '==', 'true' ) // dependency rule
),
PreviousSwitcherNextNumber

Last updated 7 years ago