Fix for deprecated create_function()
-
As shown in https://github.com/wp-crm/wp-crm/pull/187
the solution is to change lines #316 & #317 (under track_detailed_user_activity) toadd_action('password_reset', function ($user) { WP_CRM_F::insert_event(["object_id" => $user->ID, "attribute" => "detailed_log", "other" => 5, "action" => "password_reset"]); }); add_action('wp_login', function ($user_login) { $user = get_user_by("login", $user_login); WP_CRM_F::insert_event(["object_id" => $user->ID, "attribute" => "detailed_log", "other" => 2, "action" => "login"]); });
- The topic ‘Fix for deprecated create_function()’ is closed to new replies.