bbp_get_title_max_length

Return the maximum length of a title.

Description

(int) bbp_get_title_max_length( (int) $default = 80 ); 

Returns (int)

Is anonymous posting allowed?

Parameters (1)

0. $default — Optional. (int) => 80
Bool Optional. Default value 80

Usage

  1. if ( !function_exists( 'bbp_get_title_max_length' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/core/options.php'; 
  3.  
  4. // bool Optional. Default value 80 
  5. $default = 80; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bbp_get_title_max_length($default); 
  9.  

Defined (1)

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

/includes/core/options.php  
  1. function bbp_get_title_max_length( $default = 80 ) { 
  2. return (int) apply_filters( 'bbp_get_title_max_length', (int) get_option( '_bbp_title_max_length', $default ) );