Create register post type function in Wp plugin.

WordPress Post Type Function

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.

lamborghini gallardo hire

WordPress uses following post types already, there are..
 post
 page
 attachment
 revision
 nav_menu_item

Some of the post types should not use, because they interfere with other WordPress functions, there are…
 action
 author
 order
 theme

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.

Saritha Reddy

I am Saritha Reddy, a Remote codeigniter,Angularjs Developer. I have 4+ years of strong experience in designing, implementing, Programming and delivering advanced XAMPP ( Apache, MySQL and PHP) Web applications development.
I am an Indian national and based Andhra Pradesh,Hyderabad.
In addition to providing custom programming and design, I also have extensive experience with Open Source technologies to keep costs down and get websites running with as little fuss and wait as possible.

More Posts

Follow Me:
TwitterFacebookGoogle Plus


  1. marvel contest of champions hack ios

    Thank you for giving the information. It will help me lot.

  2. rhea.cobby

    Saved as a favorite, I actually like your site!


Leave a Comment

Your email address will not be published. Required fields are marked *