We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77f9a7c commit a9af503Copy full SHA for a9af503
Theme.php
@@ -36,6 +36,15 @@ function addFooterContent($input) {
36
}, 101 );
37
}
38
39
+ function addHeaderContent($input) {
40
+ if(is_subclass_of($input, '\cw\php\js\expression\AbstractExpression'))
41
+ $input = new \cw\php\js\expression\Wrapper($input);
42
+
43
+ add_action( 'wp_head', function() use($input){
44
+ echo $input;
45
+ }, 101 );
46
+ }
47
48
public function pageTemplate(){
49
return get_query_template('page');
50
0 commit comments