logging items insert

This commit is contained in:
Jacson Passold 2017-11-27 22:55:22 -02:00
parent d4d7bf9a75
commit d6b8c01f73
1 changed files with 3 additions and 0 deletions

View File

@ -103,6 +103,9 @@ class Items extends Repository {
$Tainacan_Item_Metadata->insert($meta);
}
do_action('tainacan-insert', $item);
do_action('tainacan-insert-Item', $item);
// return a brand new object
return new Entities\Item($item->WP_Post);
}