What happened to $_SESSION[‘um_account_fields’]
-
I could not find this change in the changelog.
In version 1.3.78, um-filters-account.php had this code:
add_filter('um_account_secure_fields','um_account_secure_fields', 10, 2); function um_account_secure_fields( $fields, $tab_key ){ //print_R($fields); //print_R($tab_key); $_SESSION['um_account_fields'][ $tab_key ] = $fields; update_user_meta( um_user('ID'), 'um_account_secure_fields', $_SESSION['um_account_fields'] ); return $fields; }
Somewhere along the line to version 1.3.88, this code was completely changed.
I was using this code example to add Advanced Custom Fields to my Ultimate Member Profile tab:
https://gist.github.com/champsupertramp/c1f6d83406e9e0425e9e98aaa36fed7dIt relied on the code mentioned above, that has since been changed. Thus, the field still displays but does not save, because update_user_meta is no longer called on $_SESSION[‘um_account_fields’]. What behavior replaced this function?
I know that you do not provide support for custom code, which is ok. But I would like to be informed of how the plugin now handles saving fields, as it is a significant change to the plugin, and I could not find it addressed in the changelog. If it is in the changelog, please direct me to the location.
The page I need help with: [log in to see the link]
- The topic ‘What happened to $_SESSION[‘um_account_fields’]’ is closed to new replies.