Skip to content

Tag: wordpress

How to enable output_buffering on wordpress official image

I’m taking my first steps with Docker, specifically with wordpress official image, which is just amazing to use. However, after installing (via docker-compose as below) and checking phpinfo() it appears that output_buffering = 0. I spent the weekend trying to find the best way to expose, or bind to php.ini to…

wp_after_insert_post not triggering

I am trying to send an email after a new post has been created. It needs to be sent after the creation of the post, because I want to include the post category in the email. wp_after_insert_post does not seem to work, as no email is sent. I have tried using the same code with the publish_post hook instead, wh…