changes for user profile section

add action to our section hook
This commit is contained in:
nikitasinelnikov
2017-03-24 16:50:49 +02:00
committed by GitHub
parent f378e81e53
commit a72a8861d3
+4 -3
View File
@@ -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 );
}
}
}