mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-20 15:13:55 +09:00
Add new filter hook to modify the specific field type's value
This commit is contained in:
+5
-2
@@ -54,7 +54,7 @@ class UM_Fields {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hidden field insaide a shortcode
|
* Hidden field inside a shortcode
|
||||||
* @param string $field
|
* @param string $field
|
||||||
*/
|
*/
|
||||||
function add_hidden_field( $field ) {
|
function add_hidden_field( $field ) {
|
||||||
@@ -444,8 +444,11 @@ class UM_Fields {
|
|||||||
} else if ( um_user( $key ) && $this->editing == true ) {
|
} else if ( um_user( $key ) && $this->editing == true ) {
|
||||||
|
|
||||||
if ( strstr( $key, 'user_pass' ) ) return '';
|
if ( strstr( $key, 'user_pass' ) ) return '';
|
||||||
|
$value = um_user( $key );
|
||||||
|
$value = apply_filters( "um_edit_{$key}_field_value", $value, $key );
|
||||||
|
$value = apply_filters( "um_edit_{$type}_field_value", $value, $key );
|
||||||
|
|
||||||
return apply_filters( "um_edit_{$key}_field_value", um_user( $key ), $key );
|
return $value;
|
||||||
|
|
||||||
} else if ( ( um_user( $key ) || isset( $data['show_anyway'] ) ) && $this->viewing == true ) {
|
} else if ( ( um_user( $key ) || isset( $data['show_anyway'] ) ) && $this->viewing == true ) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user