Added restore status for CPT, closed #46

This commit is contained in:
Yakir Sitbon 2016-07-06 14:48:14 +03:00
parent cdcf54ad5f
commit 667cbec3fc
3 changed files with 100 additions and 92 deletions

View file

@ -25,8 +25,11 @@ class AAL_Hook_Posts extends AAL_Hook_Base {
// page was deleted.
$action = 'trashed';
}
elseif ( 'trash' === $old_status ) {
$action = 'restored';
}
else {
// page updated. i guess.
// page updated. I guess.
$action = 'updated';
}