| 1 | <?php |
||
| 21 | class Bitsy_Wrapping { |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Stores the full path to the main template file |
||
| 25 | */ |
||
| 26 | static $main_template; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Stores the base name of the template file; e.g. 'page' for 'page.php' etc. |
||
| 30 | */ |
||
| 31 | static $base; |
||
| 32 | |||
| 33 | static function wrap( $template ) { |
||
| 50 | } |
||
| 51 | |||
| 52 | add_filter( 'template_include', array( 'Bitsy_Wrapping', 'wrap' ), 99 ); |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.