mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-16 13:03:21 +09:00
Add a filter for the title text
This commit is contained in:
@@ -183,6 +183,11 @@ class Display_Featured_Image_Genesis_Common {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $title
|
||||
*
|
||||
* @return mixed|void
|
||||
*/
|
||||
protected static function set_item_title( $title = '' ) {
|
||||
|
||||
$frontpage = get_option( 'show_on_front' ); // either 'posts' or 'page'
|
||||
@@ -213,7 +218,7 @@ class Display_Featured_Image_Genesis_Common {
|
||||
$title = post_type_archive_title( '', false );
|
||||
}
|
||||
}
|
||||
return $title;
|
||||
return apply_filters( 'display_featured_image_genesis_title_text', $title );
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user