revansreturn
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] What Differentiates WooCommerce Users from WordPress UsersThank you. Found the definition for the customer role in this file:
includes / class-wc-install.php
Forum: Themes and Templates
In reply to: Some get_theme_mod() calls return bool(false)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
In reply to: Some get_theme_mod() calls return bool(false)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 CustomizerForum: Themes and Templates
In reply to: Some get_theme_mod() calls return bool(false)<?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"