plugin updates
This commit is contained in:
@@ -14,7 +14,6 @@ abstract class AbstractPageTemplate extends AbstractTemplate {
|
||||
*/
|
||||
public function init() {
|
||||
add_filter( 'page_template_hierarchy', array( $this, 'page_template_hierarchy' ), 1 );
|
||||
add_filter( 'pre_get_document_title', array( $this, 'page_template_title' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -48,7 +47,10 @@ abstract class AbstractPageTemplate extends AbstractTemplate {
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter the page title when the template is active.
|
||||
* Forces the page title to match the template title when this template is active.
|
||||
*
|
||||
* Only applies when hooked into `pre_get_document_title`. Most templates used for pages will not require this because
|
||||
* the page title should be used instead.
|
||||
*
|
||||
* @param string $title Page title.
|
||||
* @return string
|
||||
|
||||
Reference in New Issue
Block a user