Support

Account

Forum Replies Created

  • +1 on a 5 year old request…

    I maintain a multisite installation and several stand-alone sites, all of which exist on my local machine and in 2-3 environments for various layers of testing on the web, all of which are heavily reliant on ACF Pro, so I obviously have a developer license, and it’s a serious pain to have to manually copy in my key and reactivate on every environment every time I create a new subsite, change a url, refresh a testing environment, or even temporarily deactivate and reactivate the plugin while debugging something! I assumed using update_option(‘acf_pro_license’, [mylicense]) in my theme setup would help, but that doesn’t seem to be working, so I’m going to try the various suggestions throughout this thread and see if any get the job done, but SERIOUSLY this needs to be part of the core plugin.

  • Sounds like the value stored in your ‘opiekun_klienta’ field is the user id of the account manager, so there’s just one more step to get the display name (or whichever field you want to show for the managers).

    I haven’t tested this, but this should get you close – replace the last function in your code above with:

     function column_display_wpse_101322( $value, $column_name, $user_id )
    {
      $manager_id = get_user_meta( $user_id, 'opiekun_klienta', true ); 
      $manager_name = get_user_meta( $manager_id, 'display_name', true);
      if($column_name == 'accountmanager_col') return $manager_name;
      return $value;
    
    }
Viewing 3 posts - 1 through 3 (of 3 total)