Hi @kranzl,
Unfortunately, I don’t understand your question, can you please clarify what you are trying to achieve?
Regards.
Thread Starter
kranzl
(@kranzl)
Hi,
I would like to add a filter function to encode email adresses on the front page.
When I hack it into your plugin souce file um-filters-fields.php it works:
function um_profile_field_filter_hook__( $value, $data, $type = ” ) {
…
if ( !is_array( $value ) ) {
if ( is_email( $value ) )
$value = ‘<\A…>’.eae_encode_emails($value).'</\A>’;
I tried then to do it the clean way and add the filter but don’t succeed:
function my_profile_field( $value, $data ) {
return eae_encode_emails($value);
}
add_filter( ‘um_profile_field_filter_hook__user_email’, array( $this, ‘my_profile_field’), 10, 2 );
-
This reply was modified 7 years, 8 months ago by
kranzl.
-
This reply was modified 7 years, 8 months ago by
kranzl.
-
This reply was modified 7 years, 8 months ago by
kranzl.