Skip to content

Instantly share code, notes, and snippets.

View Zvangi's full-sized avatar

Erdem Zvangi

View GitHub Profile
@aimahdi
aimahdi / fluent_form_lost_password.php
Last active April 9, 2025 10:09
Add a lost password action in Fluent Forms
add_action('fluentform/before_insert_submission', function ($insertData, $data, $form) {
if($form->id != 17) { // 17 is your form id. Change the 17 with your own login for ID
return;
}
$redirectUrl = home_url(); // You can change the redirect url after successful login
if (get_current_user_id()) { // user already registered
wp_send_json_success([
'result' => [