However, I didn't realize it (caching issue) when I tweaked the code (line 7) so it will work on more than one Post Form, it crashes my site 🙁 Can you tell me what I did wrong?
<?php
/**
* Customise redirect URL
*/
function tssupp_custom_redirect( $url, $post_id, $form_data ){
if ( $form_data['id'] == '763', '773' ) { // Edit form id
$url .= '?lcp=' . $post_id;
}
return $url;
}
add_filter( 'cred_success_redirect', 'tssupp_custom_redirect', 10, 3 );
That fixed it! Thank you so much! One final question (I know this is beyond that Toolset support covers) but do you have a book / online course recommendation to learn PHP so I can be awesome like you?
Sorry, not really. PHP is something I've learned over years of working with WordPress, without doing a formal course, and any books I used would be well out-of-date by now.
I'd definitely recommend taking a more formal approach than I did, though.
Googling, you'll find lots of tutorials available.
You might want to start with a course such as hidden link, and then move onto something more advanced.