I have no idea how the framework actually stores its options, but I guess it uses the name redux_demo
, not redux_demo[10]
. If the option is an array, you can access the element 10
like this:
$redux_demo = get_option( 'redux_demo' );
if ( ! empty ( $redux_demo[ 10 ] ) and 1 === $redux_demo[ 10 ] )
{
print '<h1>Text</h1>';
}