default_page_template_title

This filter is documented in wp-admin/includes/meta-boxes.php.

Description

apply_filters( 'default_page_template_title', (unknown) $var, (string) $quick_edit ); 

Parameters (2)

0. $var (unknown) => __( 'Default Template' )
The var.
1. $quick_edit (string) => 'quick-edit'
The quick edit.

Usage

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

Defined (2)

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

/wp-admin/includes/class-wp-posts-list-table.php  
  1. $default_title = apply_filters( 'default_page_template_title', __( 'Default Template' ), 'quick-edit' ); 
/wp-admin/includes/meta-boxes.php  
  1. $default_title = apply_filters( 'default_page_template_title', __( 'Default Template' ), 'meta-box' );