Monday, December 18, 2017

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.

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.

Tags:
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.

2 Comments

marvel contest of champions hack ios June 28, 2016 at 3:01 am

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

rhea.cobby October 18, 2016 at 4:41 am

Saved as a favorite, I actually like your site!

Leave a Comment