| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | function setDocumentTitle() |
||
| 23 | { |
||
| 24 | // prevent yoast overwriting the title |
||
| 25 | add_filter('pre_get_document_title', function ($title) { |
||
|
|
|||
| 26 | return ''; |
||
| 27 | }, 99); |
||
| 28 | |||
| 29 | // set custom title and keep the default separator and site name |
||
| 30 | add_filter('document_title_parts', function ($title) { |
||
| 31 | $title['title'] = 'Base Style'; |
||
| 32 | return $title; |
||
| 33 | }, 99); |
||
| 34 | } |
||
| 48 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.