get_blog_permalink( int $blog_id, int $post_id )

Get the permalink for a post on another blog.

Description Description

Parameters Parameters


(int) (Required) ID of the source blog.


(int) (Required) ID of the desired post.

Top ↑

Return Return

(string) The post's permalink

Top ↑

Source Source

File: wp-includes/ms-functions.php

function get_blog_permalink( $blog_id, $post_id ) {
	switch_to_blog( $blog_id );
	$link = get_permalink( $post_id );

	return $link;

Top ↑

Changelog Changelog

Version Description
MU (3.0.0) 1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.