Clanbite Forums REST

apply_filters( 'clanbite_forums_new_topic_slug_base', string $base_from_title, string $title, int $forum_id )

Base string for auto-generated topic slug (unique per forum).

Filter PHP

Parameters

$base_from_title (string)

sanitize_title( $title ).

$title (string)

Raw title.

$forum_id (int)

Forum ID.

Example

add_filter( 'clanbite_forums_new_topic_slug_base', function ( $base_from_title, $title, $forum_id ) {
	// Change $base_from_title here.
	return $base_from_title;
}, 10, 3 );

Defined in inc/Rest/Rest_Controller.php