Skip to content

Latest commit

 

History

History

dev

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Tainacan for Developers

As you know, Tainacan is a WordPress plugin and is built on top of this very well known platform. If you are familiar with WordPress it should be easy for you to understand how Tainacan is organized, how it interacts with the database and how to build your own features from it.

Well, but I'm new to WordPress

If you don't have experience with WordPress and would like to develop a plugin for Tainacan, or even contribute to the plugin, it's a good idea to learn some fundamentals. Those will be useful to everything you will deal with while working with Tainacan.

This is a non-exhaustive list of the most important topics you should look into:

  • WP_Query class - This is the heart of WordPress, the class that gives you the interface to query for posts in the database. All interaction with the database in Tainacan uses this class.
  • Custom Post types and taxonomies - All Tainacan entities, such as collections, metadata and items, are WordPress Custom post types, so it is helpful to understand how they are handled.
  • The Loop - One of the main WordPress elements used to interact through posts. Useful especially if you are tweaking with themes.
  • Template Tags - Simple functions used by theme developers to display dynamic content. Usually, these function are used inside "The Loop" and Tainacan implements it's own Template tags.
  • Template Hierarchy - Crucial if working with themes.

Development Resources

Development Basics {docsify-ignore}

  • Setting up local environment - If you want to contribute to Tainacan core, you must set up your local environment. Alternatively, you can use our Docker repository. If you want to develop themes or plugins, you don't need this.
  • Key Concepts - First things first. Let's understand what is what in Tainacan.
  • Tainacan Internals - Reference on Tainacan main classes and how to use them.
  • Tainacan Hooks - Expand or modify different sections of code without modifying the plugin, using Actions and Filters, both in backend and frontend.
  • Tainacan API - A Rest JSON API which you can use to get content from a Tainacan database.
  • Roles and Capabilities - Basic information about data privacy and access levels in Tainacan.

More on Plugin Development {docsify-ignore}

Plugin Extension {docsify-ignore}

Theme Development or Extension {docsify-ignore}

Configuration and performance {docsify-ignore}


Other development contributions