How can I detect if the “myaccount/my-account.php” template is used on the Dashboard. Currently I use: query_vars[‘page’]) ) { ?> <a href="/…
Tag: conditional
Check if multiple values are all false or all true
How can I check if 20 variables are all true, or if 20 variables are all false? if possible without using a really long if … the variables are actually array elements: array(‘a’=> true, ‘b’=> true …) to make it more clear: if the array has both true and false values return nothing if the array has only true values