• Home
  • Quick Start
    • Color Schemes
  • Documentation
    • Shortcodes
    • JaW Hooks
    • Screenshots of ThemeOptions
  • Tutorials
  • Forum
  • Contact
Log In

  • Home
  • Quick Start
    • Color Schemes
  • Documentation
    • Shortcodes
    • JaW Hooks
    • Screenshots of ThemeOptions
  • Tutorials
  • Forum
  • Contact

HomeCodeHow to use your own options
new option

How to use your own options

  • admin
  • Posted in Codefor DevelopersTutorials
0
SHARES
SHARESHARESHARESHARE
SHARESHARE

First part of this tutorial

We recommend to you to do all these changes in your Child Theme.

Now we have Placed New Option in Theme Options. So how to bring it to life.

Anywhere in your child theme just use this code to get the value:

jwOpt::get_option('my_awesomeness', 'SOME_DEFAULT_VALUE');

so we can use it e.g. by this way:

if(jwOpt::get_option('my_awesomeness', '0') == '1'){
 //do sth
}

Related Posts

wphooks
0 comments
JaW Hooks

Actions jaw_before_usermanagement and jaw_after_usermanagement

menu-widget6
0 comments
CodeTutorials

How to add more Widget areas to menu.

wphooks
0 comments
JaW Hooks

Filter jaw_get_template_part

show

How to create own shortcode

TO

Screenshots of ThemeOptions

Related Posts

wphooks
0 comments
JaW Hooks

Actions jaw_before_usermanagement and jaw_after_usermanagement

menu-widget6
0 comments
CodeTutorials

How to add more Widget areas to menu.

wphooks
0 comments
JaW Hooks

Filter jaw_get_template_part

install-t6
0 comments
Tutorials

How to set Custom Stock Ticker

Tags

  • frontend
  • Options
  • theme options
  • Was this Helpful ?
  • yes   no
Copyright © 2016 jawtemplates - WordPress Design Studio Disable responsivity