editable_slug

Filters the editable slug.

Description

apply_filters( 'editable_slug', (unknown) $bbp_get_topic_tag_slug ); 

Parameters (1)

0. $bbp_get_topic_tag_slug (unknown) => bbp_get_topic_tag_slug()
The bbp get topic tag slug.

Usage

To run the hook, copy the example below.
  1. $bbp_get_topic_tag_slug = apply_filters( 'editable_slug', $bbp_get_topic_tag_slug ); 
  2.  
  3. if ( !empty( $bbp_get_topic_tag_slug ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the editable_slug callback 
  2. function filter_editable_slug( $bbp_get_topic_tag_slug ) { 
  3. // make filter magic happen here... 
  4. return $bbp_get_topic_tag_slug
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'editable_slug', 'filter_editable_slug', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'editable_slug', 'filter_editable_slug', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/bbpress/form-topic-tag.php  
  1. <input type="text" id="tag-slug" name="tag-slug" size="20" maxlength="40" tabindex="<?php bbp_tab_index(); ?>" value="<?php echo esc_attr(apply_filters('editable_slug', bbp_get_topic_tag_slug())); ?>" />