Blog

  • How to work out the current state of a plugin

    How to work out the current state of a plugin

    It’s a rare instance where you need to know, from your own code, the state of a plugin but, for instance, this may be something particularly relevant to a theme.

    The usual way is to use the PHP command functions_exists to check whether a specific function is present. Of course, hard-coding this is probably not the best idea as function names change. Instead the WordPress function is_plugin_active is a better solution and you only need to specify the (non-changing) plugin slug for this to work.

    Now, this will tell you if the plugin is active but what if you also want to know if it’s installed or not?

    (more…)
  • Why WordPress developers often get the is_admin function wrong

    Why WordPress developers often get the is_admin function wrong

    Let me first say that I’m guilty. For “performance reasons” I’m always careful to only run functions in their appropriate area of WordPress – so, something only used in the admin area will be checked via the use of is_admin. Only if this is true will I then run that code. It makes sense.

    But for plugins there is no performance improvement.

    (more…)
  • My Wedding Singer Diary – Part 4

    My Wedding Singer Diary – Part 4

    It’s now just 3 weeks until the opening night of the show. Nervous? Me? Actually, no. I have some lines left to learn and a couple of dances to work on but, otherwise, yeah, I’m confident. My hair, which got a mention in my last diary entry, it getting to new levels of annoyance – it’s knotty, won’t dry, sticks up all over the place and is now getting in my eyes. I’ve remember now why I hate it long – I grew it long for Jesus Christ Superstar and love the photos of me during that time – the one at the top of this site is taken from that time – but had obviously forgotten how much I hated it at the time!

    In the last entry I mentioned that I had another part. Okay, now add one more. I now play a Secret Service Agent during the final wedding scene. Now, a black suit and tie I can do. I’ve already got the mirrored shaded and have, fantastically, found someone selling genuine agent-style ear-pieces on Amazon for just a couple of pounds. I don’t need it but, yeah, it will look cool 😉

    (more…)
  • And here’s how NOT to do WordPress Support…

    And here’s how NOT to do WordPress Support…

    Many companies that sell premium WordPress Themes will make “Lite” versions available, free of charge, via WordPress.org. It gets the theme known, gives them a promotional springboard and allows people to try many of the theme’s features. For me too it also gives you an opportunity to see what their support is like.

    (more…)
  • Do Sony Do Anything About Abusive PSN Messages? (NSFW)

    Do Sony Do Anything About Abusive PSN Messages? (NSFW)

    Yesterday I was playing Overwatch, which I’m relatively new to. Not only that but I was trying out a different character which I had little experience with. Combine both of these, the former reflected in the fact that I’m only rank 12, and, yeah, I’m not a brilliant player. But I’m not THAT bad.

    Someone though thought differently as I was suddenly sent a message on my PS4.

    (more…)