array( 'value' => 'banana', 'label' => __( 'Banana', 'fruit-shake' ) ), 'blueberry' => array( 'value' => 'blueberry', 'label' => __( 'Blueberry', 'fruit-shake' ) ), 'dragon-fruit' => array( 'value' => 'dragon-fruit', 'label' => __( 'Dragon Fruit', 'fruit-shake' ) ), ); /** * Check the number of daily posts in the last week * If it's greater than or equal to 7 add the Brown Banana color scheme */ $daily_posts_last_week = fruit_shake_daily_posts_in_last_week(); if ( 7 <= $daily_posts_last_week ) { $fruit_scheme_options['brown-banana']['value'] = 'brown-banana'; $fruit_scheme_options['brown-banana']['label'] = __( 'Brown Banana', 'fruit-shake' ); } /** * Create the options page */ function theme_options_do_page() { global $fruit_scheme_options; $options = get_option( 'fruit_shake_theme_options' ); ?>