function add_custom_post() { SendPress_Posts::email_post_type($this->_email_post_type); SendPress_Posts::report_post_type($this->_report_post_type); SendPress_Posts::template_post_type(); SendPress_Posts::list_post_type(); do_action('sendpress_custom_post_types_created', $this); }