Plugin Directory

Changeset 1966662


Ignore:
Timestamp:
10/31/2018 05:57:56 PM (7 years ago)
Author:
zillowgroup
Message:

Fix for okta_username filter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-okta-authentication/trunk/okta.php

    r1966644 r1966662  
    193193
    194194      /*
     195      Get the username
     196      */
     197
     198      $username = $user->preferred_username;
     199
     200      /*
     201      Modify the username if necessary
     202      */
     203
     204      if ( has_filter ( 'okta_username' ) ) {
     205        $username = apply_filters ( 'okta_username', $user );
     206      }
     207
     208      /*
    195209      Check to see if the user already exists
    196210      */
     
    202216        */
    203217
    204         $username = apply_filters( 'okta_username', $user->preferred_username );
    205218        $user_id = wp_insert_user ( array(
    206219          'user_login' => $username,
Note: See TracChangeset for help on using the changeset viewer.