My company has a legacy add-on from version 2 and has now updated to version 4 of EE. With the upgrade, the hooks that fire when a new entry of a specific channel type are no longer triggering.
After some research, it looks like the issue that the hook names are wrong. The code defining them is below.
public function activate_extension() {
// Setup custom settings in this array.
$this->settings = array();
$entrySubmissionBeginHook = array(
'class' => __CLASS__,
'method' => 'entrySubmissionBegin',
'hook' => 'entry_submission_ready',
'settings' => serialize($this->settings),
'version' => $this->version,
'enabled' => 'y'
);
$entrySubmissionEndHook = array(
'class' => __CLASS__,
'method' => 'entrySubmissionEnd',
'hook' => 'entry_submission_end',
'settings' => serialize($this->settings),
'version' => $this->version,
'enabled' => 'y'
);
$deleteEntriesStarthook = array(
'class' => __CLASS__,
'method' => 'deleteEntriesStart',
'hook' => 'delete_entries_start',
'settings' => serialize($this->settings),
'version' => $this->version,
'enabled' => 'y'
);
ee()->db->insert('extensions', $entrySubmissionBeginHook);
ee()->db->insert('extensions', $entrySubmissionEndHook);
ee()->db->insert('extensions', $deleteEntriesStarthook);
}