Sorry to hear that. I improved the code so it’s easier to read and troubleshoot. You can also add localization if you need.
add_action('frontend_admin/form/after_submit', 'my_frontend_submit_form', 10, 1);
function my_frontend_submit_form( $form ) {
$submission_id = $form['submission'];
$approve_url = admin_url( "admin.php?page=fea-settings-submissions&action=edit&id=$submission_id" );
$email_title = sprintf( __( 'New form submission on your site: %s' , 'namespace' ), $form['record']['submission_title'] );
$email_content = sprintf( __( 'A new post is awaiting your approval. <a href="%s">Click here</a> to approve.', 'namespace' ), $approve_url );
$email_address = '[email protected], [email protected]';
if( $email_address ) {
$email_sent = wp_mail( $email_address, $email_title, $email_content );
}
}