示例#1
0
 /**
  * Load the HTML for the Email Test metabox
  */
 public static function get_email_test_html()
 {
     $id = absint($_GET['id']);
     $post = get_post($id);
     ob_start();
     FUE_Meta_Boxes::email_test_view($post);
     $html = ob_get_clean();
     self::send_response(array('status' => 'success', 'html' => $html));
 }
示例#2
0
 public static function get_email($post)
 {
     if (is_null(self::$email) || self::$email->id != $post->ID) {
         self::$email = new FUE_Email($post->ID);
     }
     return self::$email;
 }