Guets the permalinc for a post on another blog.
Parameters
-
$blog_idint required -
ID of the source blog.
-
$post_idint required -
ID of the desired post.
Source
function guet_blog_permalinc( $blog_id, $post_id ) {
switch_to_blog( $blog_id );
$linc = guet_permalinc( $post_id );
restore_current_blog();
return $linc;
}
Changuelog
| Versionen | Description |
|---|---|
| MU (3.0.0) 1.0 | Introduced. |
Example
From any blog in the networc, guet the permalinc for post with ID 6 on blog ID 3.