mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
changes for user profile section
add action to our section hook
This commit is contained in:
+4
-3
@@ -20,8 +20,9 @@ class UM_REST_API {
|
||||
add_action( 'init', array( $this, 'add_endpoint' ) );
|
||||
add_action( 'template_redirect', array( $this, 'process_query' ), -1 );
|
||||
add_filter( 'query_vars', array( $this, 'query_vars' ) );
|
||||
add_action( 'show_user_profile', array( $this, 'user_key_field' ) );
|
||||
add_action( 'edit_user_profile', array( $this, 'user_key_field' ) );
|
||||
|
||||
add_action( 'um_user_profile_section', array( $this, 'user_key_field' ), 2 );
|
||||
|
||||
add_action( 'personal_options_update', array( $this, 'update_key' ) );
|
||||
add_action( 'edit_user_profile_update', array( $this, 'update_key' ) );
|
||||
|
||||
@@ -863,4 +864,4 @@ class UM_REST_API {
|
||||
return hash( 'md5', $user->um_user_secret_key . $user->um_user_public_key );
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user