Un motore di ricerca WordPress per sviluppatori e autori di temi



get_blog_permalink ›

Da3.0.0
Deprecaton/a
get_blog_permalink ( $blog_id, $post_id )
Parametri: (2)
  • (int) $blog_id ID of the source blog.
    Richiesto:
  • (int) $post_id ID of the desired post.
    Richiesto:
Ritorna:
  • (string) The post's permalink
Definito a:
Codex:
ChangeLog:
  • MU

Get the permalink for a post on another blog.



Sorgenti

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

	return $link;
}