function abc() { Header('Location: https://myurl.com');}osc_add_hook('posted_item', 'abc');
function my_function_after_post($item){ $itemId = $item['pk_i_id']; //get item id from $item variable that will contain all the date of the item $goweb="https://abc.com"; //get my field data to insert in database for my plugin header("Location: " . $goweb); //redirect on post page exit(); //exit }osc_add_hook('posted_item', 'my_function_after_post');