I want to record email address of user who are submitting their email address from userend.
<?php
$my_post = array(
'post_title' => 'Subscribed Email',
'post_content' => 'niroj@gmail.com',
'post_status' => 'publish',
'post_author' => 1,
'post_type' => 'subscription',
);
$insertPost=wp_insert_post( $my_post );
?>
Here do i need to register subscription as a post type at first? Or it does not matter if i directly insert it with out registering post type?I do not need to show it on admin panel.