<?php $tea_content = array( array( 'type' => 'toggle', 'title' => 'Get ready to rumble!', 'id' => 'my_toggle_field_id', 'default' => true, 'description' => 'Put it on to get started', ), );

Retrieve data

Using the _get_option('my_toggle_field_id') method, you'll get (with a json_encode() display):

true

Did this page help you?