How to generate frontend page with callback?

I solved it with the help of @PatJ’s comment. add_filter(‘the_content’, function ($content) use ($callback){ if (is_singular() && in_the_loop() && is_main_query()){ $id = get_the_ID(); if (in_array($id, array_values($this->pages))){ ob_start(); $callback(); return ob_get_clean(); } } return $content; }, 1); Note that in this solution the headers are already sent and only rendering is possible. If we want to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)