Skip to:
Content
Pages
Categories
Search
Top
Bottom

Set target and _blank to a tag in private messages


  • honoluluman
    Participant

    @honoluluman

    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?

  • You must be logged in to reply to this topic.
Skip to toolbar