remove log call, use action
This commit is contained in:
parent
d318bd0d42
commit
3bb4a63a47
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue