Titan Framework makes it super easy to add various options for your plugins and themes.

If you are creating a WordPress plugin, then most likely you would want your users to be able to modify settings for your plugin. Most plugins do this by adding a settings page in your admin that can easily be navigated from the admin menu. All their settings for enabling plugin features or modifying labels are contained there. Titan allows you to easily create these with a few lines of code.

Now if you’re creating a WordPress theme, then most likely you would want to integrate your settings in the WordPress Customizer. Most themes add color pickers there to allow users to tweak the looks of their theme, or perhaps checkboxes for hiding breadcrumbs or things like that, all while being able to live preview the changes they are doing. Titan also allows you to do this, and with only a few lines of code as well.

How Does Titan Work?

Traditionally, if you would want to create adjustable settings for your plugin/theme, you would have to go through the codex then use functions such as get_option, add_submenu_page, update_post_meta, get_theme_mod, etc. This is fine, but you would end up with a ton of code, especially if you have a lot of options and settings. Not only that, but since you use different functions for admin panels, meta boxes, and the customizer, your code for your admin settings page would look completely different from your Customizer settings code.

Titan Framework basically does all the heavy lifting for you and lets you forget about all those functions. Instead, we give you only a handful: one for creating an admin panel, meta box, or customizer section, one for creating an option, then one for getting an option. It’s that simple.

Behind the scenes, when you create an admin panel using Titan, we set up the admin menu for your navigation, then we set up the admin settings page, display your options, enqueue the necessary scripts and styles for the page to look pretty, and then we also handle the saving process and security checking for you.

How Titan Framework Integrates into Your Project

Titan Framework itself is a separate thing from your project.

Unlike other frameworks where you build upon them, or include the framework files into your project, Titan Framework is a standalone WordPress plugin and works separately but alongside your theme/plugin.

Essentially, you add the option creation code in your project, and use the options in your project, then the Titan Framework plugin handles those calls.

Since Titan is separate, this means that your users can update their copies of Titan Framework for security, bug fixes and new features. The burden of making sure the framework is updated is not passed on to your project.

When to Use Titan

We often ask ourselves when to or when not to use a framework. Here are a few scenarios on when and where to use Titan Framework:

For client websites, use Titan Framework for:

  • Settings that you want your client to edit,
  • Meta boxes for additional stuff your client wants to display in posts/pages/custom post types,

For themes, use Titan Framework for:

  • All color, dropdown, and theme settings inside the Customizer,
  • Admin settings panels for theme settings that do not fit in the Customizer,

For plugins, use Titan Framework for:

  • Admin settings panels for adjusting plugin behavior,
  • Meta boxes for new behavior for custom post types,
  • Rapid prototyping and deployment.

When Not to Use Titan

If you only a few adjustable settings for your project, then it might be a good idea to just do things the traditional way. For themes & plugins, your users might get annoyed if you ask them to install and activate Titan Framework if you only have 2 options.

How to Use it

We have a very short quick start tutorial at http://titanframework.net/how/