Noptin_Post_Types::register_post_types()
Register post types
Source Source
File: includes/class-noptin-post-types.php
public function register_post_types() { if ( ! is_blog_installed() || post_type_exists( 'noptin-form' ) ) { return; } /** * Fires before custom post types are registered * * @since 1.0.0 */ do_action( 'noptin_register_post_type' ); // Optin forms. register_post_type( 'noptin-form', $this->get_form_post_type_details() ); // Email campaign. register_post_type( 'noptin-campaign', $this->get_email_campaign_post_type_details() ); /** * Fires after custom post types are registered * * @since 1.0.0 */ do_action( 'noptin_after_register_post_type' ); }
Expand full source code Collapse full source code View on GitHub