adding plugin functions insert code in the post