QUESTION Hot to get theme url on plugin code? - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: QUESTION Hot to get theme url on plugin code? (/showthread.php?tid=7536) |
Hot to get theme url on plugin code? - bakal - 2015-09-09 Hello! How I can get theme url adress on plugin code? Something like get_theme_url(); effect on theme (I want to save this url on string, not for showing). Please help RE: Hot to get theme url on plugin code? - shawn_a - 2015-09-09 yes that is exactly how you do it. PHP Code: /** RE: Hot to get theme url on plugin code? - bakal - 2015-09-09 Sorry, I am not a programer. I want to do something like this: $some = get_theme_url(); echo "My theme url is: " . $some . " ! "; Now i get: http://mysite.com/THEME... My theme url is: ! Thanks! RE: Hot to get theme url on plugin code? - shawn_a - 2015-09-09 most theme_functions output directly, that is what the echo = true argument is for echo "My theme url is " . get_theme_url(false) . "!"; or PHP Code: $some = get_theme_url(false); or just Code: My theme url is <?php get_theme_url(); ?> ! RE: Hot to get theme url on plugin code? - bakal - 2015-09-09 Hehe I did it wrong - get_theme_url($echo = false); Thank you very much! |