Extension Hooks

submit_new_entry_redirect

Hook Added in Version:

EE 1.4

Hook File Location:

cp.publish.php

Hook Description:

Modify redirect location after an entry is submitted and processed

Hook Parameters

  • $entry_id - Entry's ID
  • $data - Array of data about entry (title, url_title)
  • $cp_call - Whether the form was from the CP or user side of site

Hook Returns Data?

Yes

Appearance of Hook in the Code

if (isset($EXT->extensions['submit_new_entry_redirect']))
{
 $loc = $EXT->call_extension('submit_new_entry_redirect', $entry_id, $data, $cp_call);
 if ($EXT->end_script === TRUE) return;
}

Additional Notes

If there are trackback or ping errors, then this hook will not be called as a unique error message page is shown prior. 1.5.2 => Added $cp_call variable