Hello,
I am trying to set by default target and _blank in a link tag inside the content of private messages.
I have tried somethink like that
add_filter( 'bp_messages_allowed_tags', 'filteratag' );
function filteratag($messages_allowedtags) {
$messages_allowedtags['a'] = array(
'aria-label' => array(),
'class' => array(),
'data-bp-tooltip' => array(),
'id' => array(),
'rel' => array(),
'tagret' => '_blank',
);
return $messages_allowedtags;
}
but didn’t worked. Could someone help me please?