SavePostType() public method

Save a New Post type
public SavePostType ( )
Esempio n. 1
0
 /** 
  * Determine which action will be executed
  *
  */
 function Dispacher()
 {
     if (empty($_GET['action'])) {
         $action = "manage";
     } else {
         $action = $_GET['action'];
     }
     $action = esc_attr($action);
     switch ($action) {
         case "manage":
             MF_PostTypePages::ManagePostType();
             break;
         case "add":
             MF_PostTypePages::AddPostType();
             break;
         case "save":
             MF_PostTypePages::SavePostType();
     }
 }