/**
  * Filter returns the default contents of a Membership Page if the URL param
  * &ms-default=1 is set.
  *
  * Effectively this will display the default contents inside the Post-Editor
  * without changing the page itself. Only after the user saves the content
  * it will affect the Membership page
  *
  * @since  1.0.0
  * @param  string $content Default page content.
  * @return string Modified page content.
  */
 public function show_default_content($content)
 {
     static $Message = false;
     global $post, $post_type;
     if (!isset($_GET['ms-default'])) {
         return $content;
     }
     if ('1' != $_GET['ms-default']) {
         return $content;
     }
     if ('page' != $post_type) {
         return $content;
     }
     $ms_page = MS_Model_Pages::get_page_by('id', $post->ID);
     if (empty($ms_page)) {
         return $content;
     }
     $type = MS_Model_Pages::get_page_type($ms_page);
     if (!$Message) {
         $Message = true;
         lib3()->ui->admin_message(__('<strong>Tipp</strong>:<br />' . 'The page content is reset to the default content but is <em>not saved yet</em>!<br />' . 'You can simply close this page to keep your current page contents.', 'membership2'));
     }
     return MS_Model_Pages::get_default_content($type);
 }