Answer the question
In order to leave comments, you need to log in
Why does layout slide out when rendering a page in a WordPress plugin?
I am writing a plugin for WordPress, when working out the render method, I specify the file to be connected
. Inside the render function, the data is transferred to the Twig template engineecho $this->render('index.php', []);
<?php return $this->_renderer->render($file,$params) ?>
<div class="wrap">
<p>Test</p>
<p>Test</p>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question