A Simple Demo of OptionTree Inputs for Wordpress

Image for post
Image for post
Outputting Text From OptionTree Input
add_filter( 'ot_theme_mode', '__return_true' );
add_filter( 'ot_show_pages', '__return_true' );
require_once ('option-tree/ot-loader.php');
Image for post
Image for post
OptionTree Menu
Image for post
Image for post
OptionTree Documentation Link
Image for post
Image for post
Default Input Field
<?php echo ot_get_option('sample_text', 'default text') ?>

Written by

Front-end Web Developer. Language lover. Traveler. Dude.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store