wp_title

Filters the text of the page title.

Description

apply_filters( 'wp_title', (unknown) $post_post_title, (string) $var, (string) $var ); 

Parameters (3)

0. $post_post_title (unknown)
The post post title.
1. $var (string) => ''
''
2. $var (string) => ''
''

Usage

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

Defined (1)

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

/modules/shortcodes/polldaddy.php  
  1. $title = apply_filters( 'wp_title', $post->post_title, '', '' );