Forums

Join
bbPress Support ForumsTroubleshootingwho to Change Tags splitter ?

Info

who to Change Tags splitter ?

  1. Helo

    I need to Change the Tags splitter from "," to "-"

    who ?

  2. You can find this function in bb-includes/functions.php

    function bb_add_topic_tags( $topic_id, $tags ) {
    	global $bbdb;
    
    	$tags = trim( $tags );
    	$words = explode(',', $tags);
    
    	if ( !is_array( $words ) )
    		return false;
    
    	$tag_ids = array();
    	foreach ( $words as $tag )
    		if ( $_tag = bb_add_topic_tag( $topic_id, $tag ) )
    			$tag_ids[] = $_tag;
    	return $tag_ids;
    }

    The explode() function is where the logic is happening... you'll have to test to see if it screws up anything else, cause I've not tried it.

  3. Thank you HowToGeek ...

    i will do this job .

  4. You must log in to post.