1 | <?php |
||
21 | class SpursWrapping { |
||
22 | |||
23 | /** |
||
24 | * Stores the full path to the main template file |
||
25 | * @return string |
||
26 | */ |
||
27 | static $mainTemplate; |
||
28 | |||
29 | /** |
||
30 | * Stores the base name of the template file; e.g. 'page' for 'page.php' etc. |
||
31 | * @return string |
||
32 | */ |
||
33 | static $base; |
||
34 | |||
35 | static function wrap( $template ) { |
||
52 | } |
||
53 | |||
54 | add_filter( 'template_include', array( 'SpursWrapping', '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
@return
annotation as described here.