Title: revansreturn's Replies | WordPress.org

---

# revansreturn

  [  ](https://wordpress.org/support/users/revansreturn/)

 *   [Profile](https://wordpress.org/support/users/revansreturn/)
 *   [Topics Started](https://wordpress.org/support/users/revansreturn/topics/)
 *   [Replies Created](https://wordpress.org/support/users/revansreturn/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/revansreturn/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/revansreturn/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/revansreturn/engagements/)
 *   [Favorites](https://wordpress.org/support/users/revansreturn/favorites/)

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] What Differentiates WooCommerce Users from WordPress Users](https://wordpress.org/support/topic/what-differentiates-woocommerce-users-from-wordpress-users/)
 *  Thread Starter [revansreturn](https://wordpress.org/support/users/revansreturn/)
 * (@revansreturn)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/what-differentiates-woocommerce-users-from-wordpress-users/#post-7235896)
 * Thank you. Found the definition for the customer role in this file:
 * includes / class-wc-install.php
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Some get_theme_mod() calls return bool(false)](https://wordpress.org/support/topic/some-get_theme_mod-calls-return-boolfalse/)
 *  Thread Starter [revansreturn](https://wordpress.org/support/users/revansreturn/)
 * (@revansreturn)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/some-get_theme_mod-calls-return-boolfalse/#post-6924982)
 * I’d like to provide an update.
 * At the beginning I set default values for every setting (like you should), and
   those values populated each setting the customizer section. Interestingly, I 
   decided to overwrite those values in the customizer and put new values in for
   each setting (I added ‘YEAH’ to the end of each one). Now they are accessible
   outside of the customizer environment AND when I’m logged out.
 * NO IDEA why that worked, nor do I know if this is a permanent fix, but thought
   I would pass the info on.
 * Thanks
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Some get_theme_mod() calls return bool(false)](https://wordpress.org/support/topic/some-get_theme_mod-calls-return-boolfalse/)
 *  Thread Starter [revansreturn](https://wordpress.org/support/users/revansreturn/)
 * (@revansreturn)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/some-get_theme_mod-calls-return-boolfalse/#post-6924955)
 * Hey,
 * I don’t give defaults to any of the get_theme_mods that work. The manual says:
 * > IF the modification name does not exist, then the $default will be passed through
 * But all of my modification names DO exist, so get_theme_mod should return one
   of the following:
 * 1) their default setting value specified in add_setting()
    2) their setting as
   defined in the Customizer
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Some get_theme_mod() calls return bool(false)](https://wordpress.org/support/topic/some-get_theme_mod-calls-return-boolfalse/)
 *  Thread Starter [revansreturn](https://wordpress.org/support/users/revansreturn/)
 * (@revansreturn)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/some-get_theme_mod-calls-return-boolfalse/#post-6924928)
 *     ```
       <?php
        echo var_dump(get_theme_mod('action-bar-color' )) . '<br />';
        echo var_dump(get_theme_mod( 'woo-menu-log-in-title' ));
       ?>
       ```
   
 * **Returns the following when OUTSIDE the Customizer:**
 *     ```
       string(7) "#99b1ff"
       bool(false)
       ```
   
 * **Returns the Following when INSIDE the Customizer:**
 *     ```
       string(7) "#99b1ff"
       string(6) "Log In"
       ```
   

Viewing 4 replies - 1 through 4 (of 4 total)