inkthemes_titlesmall

The Black Rider Lite Responsive Theme inkthemes titlesmall function.

Description

inkthemes_titlesmall( (string) $before = '', (string) $after = '', (constant) $echo = true, (constant) $length = false ); 

Parameters (4)

0. $before — Optional. (string) => ''
The before.
1. $after — Optional. (string) => ''
The after.
2. $echo — Optional. (constant) => true
The echo.
3. $length — Optional. (constant) => false
The length.

Usage

  1. if ( !function_exists( 'inkthemes_titlesmall' ) ) { 
  2. require_once '/functions/inkthemes-functions.php'; 
  3.  
  4. // The before. 
  5. $before = ''; 
  6.  
  7. // The after. 
  8. $after = ''; 
  9.  
  10. // The echo. 
  11. $echo = true; 
  12.  
  13. // The length. 
  14. $length = false; 
  15.  
  16. // NOTICE! Understand what this does before running. 
  17. $result = inkthemes_titlesmall($before, $after, $echo, $length); 
  18.  

Defined (1)

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

/functions/inkthemes-functions.php  
  1. function inkthemes_titlesmall($before = '', $after = '', $echo = true, $length = false) { 
  2. $title = get_the_title(); 
  3. if ($length && is_numeric($length)) { 
  4. $title = substr($title, 0, $length); 
  5. if (strlen($title) > 0) { 
  6. $title = apply_filters('inkthemes_titlesmall', $before . $title . $after, $before, $after); 
  7. if ($echo) 
  8. echo $title; 
  9. else 
  10. return $title;