Archive for the ‘Development’ Category

16 June, 2014 — Development, Snippets, WordPress

Hide A WordPress Plugin From Plugin List

I was recently working on a client site, which required me to create a custom plugin for his website. I wanted to hide the plugin from the user, as he was a beginner and the plugin contained some sensitive functions to run his website.

In this snippet, I’ll show you how you can easily hide a WordPress plugin from the plugin list. The plugin will still work, but just won’t appear in the plugin list.

Just add the following snippet to your current theme’s functions.php file:

function hide_my_plugin() {
    global $wp_list_table;
    $hidearr = array('plugin-directory/plugin-file.php');
    $myplugins = $wp_list_table->items;
    foreach ($myplugins as $key => $val) {
        if (in_array($key,$hidearr)) {
add_action('pre_current_active_plugins', 'hide_my_plugin');

Replace plugin-directory/plugin-file.php in above code with your plugin’s directory and file name. You can find this info by clicking on edit plugin link from the plugin list.

What about Multisite?

If you wanna hide the plugin from your WordPress Multisite, then you above snippet will not remove the plugin from the Network admin list. Here’s a snippet which will work on the WordPress Multisite

function mu_hide_plugins_network( $plugins ) {
    // let's hide akismet
    if( in_array( 'akismet/akismet.php', array_keys( $plugins ) ) ) {
        unset( $plugins['akismet/akismet.php'] );
    return $plugins;
add_filter( 'all_plugins', 'mu_hide_plugins_network' );
27 May, 2014 — Development

Font Awesome Releases Version 4.1

Font Awesome 4.1

Font Awesome 4.1

Font Awesome 4.1, was released last week, adding 71 new icons, including one for WordPress, Reddit, CodePen, Drupal, Joomla, Spotify, and others.

Font Awesome was originally designed for use with Bootstrap, which helped it to become popular, but was soon widely used outside of Bootstrap-based projects.

Now that a WordPress icon is included, the font will become even more useful for developers writing plugins and themes that make use of the icons. Some WordPress users have even requested WordPress post format icons to be added to a future release. This could potentially be very useful for theme developers but may not gain enough traction.

Font Awesome also comes with its own free CDN. The BootstrapCDN for Font Awesome, hosted by MaxCDN, is free for anyone to use. What are you waiting for update to 4.1 now!

11 May, 2014 — Development, WordPress

Sitewide Message WordPress Plugin

WordPress Sitewide Message

Sitewide Message Plugin for WordPress is a plugin to allow you to simply add a banner message to the top of your website. It will display all the time on any page.


It’s a simple plugin, but here’s what’s on offer:

  • Like message to any page or website
  • Change the font colour
  • Change the background colour
  • Custom text

Coming Soon

Some funky features are coming soon!

  • Scheduled Message
  • Link Location (new window / same window)

You can install it from the plugin’s page of your WordPress dashboard or get more information and download the plugin from the official Sitewide Message page.

8 May, 2014 — Development, Snippets, WordPress

Scheduled Content WordPress Plugin

Scheduled Content Plugin for WordPress is a plugin for easily scheduling content to be shown or hidden on set dates down to the hour and minute.

I first released this plugin over a year ago now; branded to an old company of mine, however with the recent update I have added some new features; as well as cleaned up the code. You will also see I have re-branded it to That Blogger.


It’s a simple plugin, but here’s what’s on offer:

  • Allows shortcodes in the content
  • Schedule show date
  • Schedule show date  inc time
  • Schedule expiry date
  • Schedule expiry date inc time


Here is a quick example of how to use the plugin. Just install and activate the plugin and wrap anything you want to schedule in a [schedule] tag.

[schedule on='2014-12-01' at="10:01" expon='2014-12-01' expat="13:15"] the content you want to hide here [/schedule]

You can install it from the plugin’s page of your WordPress dashboard or get more information and download the plugin from the official Scheduled Content page.

29 April, 2014 — Development

Debitoor API Helper Class Version 2.0

Last year I published a PHP API Helper class for the ever-growing Debitoor accounting software. The API is a RESTful API meaning it responds to JSON and HTTPS requests.

As I have got to use this class in projects of mine, I have built upon this class adding improvements and a new Debitoor class that will process your requests for you returning a clean PHP array ready for you to use.

So what has changed?

You can find a list below of what I changed in this release and some newly added files.


//Debitoor API Class
// Code by Daniel Roizer -
// v2.0

define(req_code, "REQUEST_CODE");
define(clientID, "CLIENT_ID");
define(clientSecret, "SECRET_KEY");
define(token, "TOKEN_FROM_API");
define(apiURL, "");


$debitoor = new Debitoor();

// Get list of clients as an array()

// Get list of products as an array()

// Add a client
print_r($debitoor->AddClient($name, $address, $phone, $email, $homepage, $cinumber, $vatnumber, $countrycode));

Download Now

You can download version 2.0 of the helper class over at GitHub!
– OR –
View on GitHub

This is not part of Debitoor and is code written by myself. If you wish to have something added or have any questions please comment below or submit a ticket over a GitHub.

24 April, 2014 — Development, Life

A new look for ThatBlogger

As you might have been ThatBlogger has been quite quiet recently. This is because since the start of the year I have been extremely busy working on new projects, a new business venture and general life events.

I recently took some time to redesign That Blogger to give it a fresh new look and to finally get round to blogging again!

The New Theme

Having spent some time looking around the net for a theme to fork, saving me time designing and building a new theme. I stumbled upon a theme I really liked. It was clean, simple and used Post Formats, something I had wanted to use for a while to give my posts a facelift. This theme was Sorbet by Automattic. I knew I would have to fork a theme and adapt the code to work the way I wanted and take out the code I didn’t need for That Blogger. However after forking the code I decided to work from the ground up and build a Sorbet based theme using the Bootstrap Framework. What you see now if my finished product.

Take a look at what the theme looks like if you downloaded it right from and you’ll see the difference.

What else has changed?

I have been through and fixed broken links in posts so you don’t need to worry about clicking a link and the website behind it has gone! The next thing to be removed is adverts, I decided to ditch all adverts, this was simply because I want the website to be as clean as it can be to really focus on the content.

I have also made some minor speed improvements in the new theme.

Let me know what you think about the new look in the comments below. I’d love to hear your thoughts.