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 →

Titan Framework and PHP7 – What to expect ahead

As we have started going through insurmountable amounts of pull requests, (and we do admit we have been lax in the past, sorry!) one topic and issue caught our eyes: PHP7 Compatibility. According to that issue in Awesome Support, Titan Framework isn’t working as expected in PHP7, which was later raised in our Git issues for TF. There were several symptoms found (1, 2, and 3) and the fix we had to make for it. Of course, this was the overall result: our upcoming version of Titan Framework should now work well with PHP7. Good news right? “But wait, that means we Continue reading →

Coming soon: Taxonomy-based options

In line with upcoming Titan Framework updates, I thought I’d let you know what can be expected in future updates, at least as far as options is concerned. We have used checkbox-based values for listing taxonomies in certain plugins that we created, and we feel it’s high time Titan Framework gets this. We had implemented new multicheck and select post types in Titan Framework earlier, and logically, something for taxonomies should be done next. Right now we can’t commit to a definite deadline on when this version will appear, but we’re pretty sure we’re not the only ones who’ve dealt with 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 →

TF’s Multicheck vs. Select option: Similarities and Differences

Titan Framework enables you to employ the usual HTML forms specific for WordPress option building. Let’s focus on Select and Multicheck where by purpose, they feel similar, yet they’re not exactly the same in functionality. SELECT MULTICHECK Similarities Select multiple values Served as array values when getOption is used. Default values can be defined by array (in Multicheck) or string (in Select). Both has variants that enumerate IDs of Posts and Pages and even Taxonomies or categories Difference of Select Can be grouped. You can’t select multiple values by default as it is designed for a single choice. Usable in 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 →

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 →

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 →