GetWritePanelName() public method

Return the name of the write panel giving the post_id
public GetWritePanelName ( integer $post_id ) : string
$post_id integer
return string
Esempio n. 1
0
 /**
  *  Fill the new column Panel name
  *	This is executed if the "condense menu" option is active
  */
 function ColumnWritePanelData($column_name)
 {
     global $post;
     if ($column_name == "WritePanel") {
         $name = RCCWP_CustomWritePanel::GetWritePanelName($post->ID);
         if (!$name) {
             echo " - ";
         } else {
             echo $name;
         }
     }
 }