Skip to content

Instantly share code, notes, and snippets.

@thefuxia
Created July 2, 2014 05:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thefuxia/9811322b43683a00177f to your computer and use it in GitHub Desktop.
Save thefuxia/9811322b43683a00177f to your computer and use it in GitHub Desktop.
Multilingual Press: mlp_duplicated_blog
<?php
// In inc/pro/controllers/Mlp_Duplicate_Blogs.php,
// at the end of Mlp_Duplicate_Blogs::wpmu_new_blog()
$context = array (
'source_blog_id' => $source_blog_id,
'new_blog_id' => $blog_id
);
/**
* Called after successful blog duplication.
*
* @param array $context Two blog ids: 'source_blog_id' and 'new_blog_id'.
*/
do_action( 'mlp_duplicated_blog', $context );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment