コード例 #1
0
 public function update_post($post_id)
 {
     if (current_user_can('edit_post', $post_id) && filter_input(INPUT_POST, self::TAG_NONCE) == self::get_nonce()) {
         AceCourseExercise::make_exercise($post_id);
     }
     return $post_id;
 }