Пример #1
0
 /** 
  * Save custom informations on Save post action
  */
 function save_coupon_custom_informations()
 {
     if (!empty($_REQUEST['post_ID']) && get_post_type($_REQUEST['post_ID']) == WPSHOP_NEWTYPE_IDENTIFIER_COUPON) {
         $wps_coupon_mdl = new wps_coupon_model();
         $wps_coupon_mdl->save_coupons_informations($_REQUEST);
     }
 }