0
votes
0answers
30 views

switch_to_blog not working with constants

I'm have a multisite setup with WP E-Commerce plugin. At some places I need to use switch_to_blog() on front end and use WPSC (WP E-Commerce) functions inside. Here my code ...
0
votes
2answers
358 views

How can I append blog_id to … echo [functions-defined-constant]?

I use 'constants' a lot. I set them in functions.php like define('mytheme_town', 'Orlando'); and then call them into the theme <?php echo mytheme_town ; ?>. It's simple and easy. But I need ...
2
votes
2answers
1k views

BLOG_ID_CURRENT_SITE vs. SITE_ID_CURRENT_SITE in WordPress Multisite?

I've been trying to figure out why we have the constants BLOG_ID_CURRENT_SITE and SITE_ID_CURRENT_SITE (vs. hardcoding them to be equal to 1), what exactly the differences are, and when either of them ...