Issue #368124 by mathankumarc: Added public API functions for content approve/delete and Fixed PHP warnings