Can you please give me a screenshot where you do not want to append? Which name you want to show there?
So, in the alert box when you click to block someone, I don’t want the new string I’ve applied using that filter to be shown.
For the alert box, I just want it to remain as you’ve coded it.
Does that make sense?
May you please let me know what code you use to amend user name?
add_filter( 'fep_filter_user_name', function( $name, $id ){
if ( $name && fep_get_the_id() ) {
$name = '<a href="/member/' . $id .'">' . $name . '</a>';
}
return $name;
}, 10, 2);
try following code
add_filter( 'fep_filter_display_participants', function( $par_string, $par ){
foreach( $par as &$string ){
$string = preg_replace( esc_attr( "/<a\s(.+?)>(.+?)<\/a>/is" ), "$2", $string);
}
return implode( ', ', $par );
}, 10, 2);
-
This reply was modified 3 months, 3 weeks ago by
Shamim Hasan. Reason: forum decoded < and >