Create register post type function in Wp plugin.
WordPress Post Type Function
In Previous article we discussed about wordpress plugin creation, for more info please follow below links for wordpress plugin development.
In this session we discuss about wordpress register post type function, which we can use this function in plugins and themes, before that we need to know this register_post_type() will only invoked ‘init’ action. This will not work if we call this function before init action.
WordPress uses following post types already, there are..
Some of the post types should not use, because they interfere with other WordPress functions, there are…
Now we will create a sample register_post_type() example as below.
For more information you can go to below link as reference Post type function. Thanks.