Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

is there any way, to get the current blog id in a Tinymce Dialog Window? Currently I only get the id, from the main blog. This is my current code:

$wp_load = "wp-load.php";
while(!file_exists($wp_load)) {
$wp_load = '../' . $wp_load;
global $blog_id;
echo $blog_id;
$blog = get_blog_details($blog_id);

Any help is welcome.


share|improve this question

1 Answer 1

Try this:

global $current_blog;
$blog = get_blog_details($current_blog->blog_id);
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.