add_action – WordPress function to hook on events

add_action is an extremely used WordPress function, constructed using of PHP’s native function call_user_func_array, widely used in WP core, plugin & theme. In other sense, add_action is similar method to JavaScript’s on event binding mechanism – on(‘event’)

Create or modify wordpress post type with register_post_type function

Post type refers to the various structured data that is maintained in the WordPress posts table. To create a new or modify an existing post type, ‘register_post_type’ function is used. WordPress already has some built-in post types are post, page, attachment, revision, and nav-menu-item. Function Reference: For a quick reference of how to use ‘register_post_type’, […]

register_taxonomy – WordPress Function to Create or Modify Taxonomy

In WordPress, taxonomy is a grouping method for any post types. WordPress have five built-in taxonomy categories, post tags, nav_menu, post_format and link_category. categories, post tags and post_format are used for post_type post, nav_menu is used for post_type nav_menu_item, and link_category is used for post_type link. When built-in taxonomy are not enough, custom taxonomies are […]