add post middle plugin