Multicheck Option and “Select all” Parameter – Now a Reality (at last)!

What do you do with checkboxes, amounting to more than 15, and you have to check each and every one of them? Usually, you need something we call “Check all” or “Select all”, right? Even WordPress itself implements it on forms with multiple checkboxes. Now, Titan Framework has this for all multicheck options too, and it can be enabled. Let me tell you a secret: I pushed for this to be implemented. Right now, it’s available in different tutorials: Multicheck Multicheck Categories Multicheck Pages, Multicheck Post-Types (which we introduced previously) and Multicheck Posts. Multicheck Pages Multicheck Post-Types (which we introduced  previously) Multicheck Posts. $panel->createOption( Continue reading →

Boolean, String, and Array: Parsing Titan Framework values

How do you process values in Titan Framework? How are they stored? First, let’s count the types of values in existence, then how they are processed: 1. The Boolean It gives the True or False value, and all undefined values are False by default. Checkboxes for example are boolean in nature. To process Boolean: Simply evaluating the value, $titan->getOption(‘my_option’) or ! $titan->getOption(‘my_option’) will do. Similarly, true and false equality comparisons also work. Note that they’re bitwise boolean and not string value ‘true’ and ‘false’. if ($titan->getOption(‘my_option’)) { $this->do(); } if ($titan->getOption(‘my_option’) === true) { $this->also(); } if ($titan->getOption(‘my_option’) === true) Continue reading →

New to TF: Multicheck and select post types

In Titan Framework’s latest update, new options have been released related to post type selections. I must admit I am behind one of the implementations of those new features, and it certainly won’t be the last! Without further ado, let’s introduce them: Multicheck-post-types and Select-post-types Rationale Let me tell you why I pushed for the implementation of these options. Back then, I used to couple option selections with functions that enumerate post types in a WordPress system. It was messy! Eventually, we had several plugins that needed post type enumeration, and we ended up creating a repository of reusable functions. Continue reading →

Making money with Titan Framework and Easy Digital Downloads

Another feature in Titan Framework is its builtin ability to use Easy Digital Downloads (EDD) to validate a license. This is a great thing for users who wish to sell their plugins and themes and has Easy Digital Downloads as the cart backend. This feature requires a few things: The server must be running Easy Digital Downloads The server has a Software Licensing extension. EDD itself is free, but the Software Licensing extension requires purchase. What’s in it for me? This can be used to bring autoupdates, notify of updates, or to an extent, enable or restrict features depending on Continue reading →

Showcase Plugin

When we encounter problems when coding, it’s frustrating. Be it in creating options for our projects, plugins, or themes. But as developers, we need to prevent delays and long processes in development. To secure all of these (especially time management), the Showcase plugin was created. What is Showcase plugin? Basically it’s a plugin that will make sure all of options that Titan Framework provide will run correctly with no bugs at all. It can help us developers to check our codes and functions that may be used in addition to more options in Titan Framework. Showcase plugin displays all the saved values of your Titan Continue reading →

To Include or Embed Titan Framework? That is the question.

Titan Framework offers you two methods for including it in your themes or plugins. You can either embed it or include it. Including it means you can simply include a checker that makes sure Titan Framework exists in your site, but for your theme or plugin to work, Titan Framework must be downloaded and activated first. Embedding it, on the other hand, copies the entire framework to your plugin or theme directory, meaning you can run your theme or plugin without downloading Titan Framework. But we here at Titan Framework recommends that you simply include the Titan Framework and not Continue reading →

Adding your first option and what to do with it

Option give the users the capability to change, enhance and improve all aspects of the theme/site. It allows users to customize and modify the looks of the theme/site to satisfy their want designs and styles. By understanding how it works, it will be easier to add your first option in your project. One of the most common option is the  color option. Color option allows you to display a color picker field. This option will make it simple for you to change the color of the text or the background color of specific part of the site. Coding the Color Continue reading →

How does Titan Framework make plugin and theme coding easier?

Many other frameworks claim to make coding easier, and Titan Framework is no exception. But what characteristics of a framework would comprise as “easy” in usage? To demonstrate this, let’s see the typical workflow of making WordPress options menus the classic way, and the Titan Framework way. Ordinary WordPress Way 1. Create function and hooks for menu making. 2. Write register_setting. 3. Write add_settings_section. 4. Write add_settings_field for every option needed and their needed functions. 5. Write the needed HTML code for those setting fields and options. 6. Write handlers for updating values for the options. 7. Style the options Continue reading →

Build a Simple Theme with Customizer Options

Themes have a certain look to them. Most of the time, theme users would want to tweak certain aspects of the theme’s default design to better suit their needs. For example if your theme has a dark gray navigation bar, most likely there would be a number of users which would want to change this color into another one. If would be easier to just tell your users to just use the dark gray color and suck it up. But I don’t think they’ll be too happy about that. The better way would be to allow them to change it from Continue reading →