remove log call, use action

This commit is contained in:
Jacson Passold 2017-11-27 22:11:08 -02:00
parent d318bd0d42
commit 3bb4a63a47
1 changed files with 2 additions and 2 deletions

View File

@ -88,8 +88,8 @@ abstract class Repository {
}
}
//not log the log
if($this->entities_type != '\Tainacan\Entities\Log') Entities\Log::create($this->log_message, $this->log_description, $obj);
do_action('tainacan-insert', $obj);
do_action('tainacan-insert-'.$obj->get_post_type(), $obj);
// return a brand new object
return new $this->entities_type($obj->WP_Post);