Major Changes in the Plugin Directory

The new plugin Reviews feature suggests a shifting approach to the WordPress ecosystem. Reviews: a new tab in town On every plugin page, there is now a Reviews tab. This is in addition to the Support tab that WordPress added around August. Rating a plugin now requires a review Until now, WordPress reviews were basic: […]

Web Development WordPress

Generate a Link to Activate a Plugin in WordPress

Here’s another specialized plugin development tip! If you want to create a link to activate a plugin, you need to know the path of the plugin file. Let’s use Akismet for this example. $path = ‘akismet/akismet.php’; $link = wp_nonce_url(admin_url(‘plugins.php?action=activate&plugin=’.$path), ‘activate-plugin_’.$path); The `$link` URL will be something like

Plugins Web Development

Yourls Google Analytics Link Tagging

In my last post, I wrote about the benefits of using YOURLS, a self-hosted link-shortening service. I’m finding that YOURLS is great, but it’s not perfect. Some of the issues I have experience are part of what you get using most URL shortener services. Some of the downsides of using link shorteners are: Google Analytics doesn’t […]

QuickTip WordPress

Passing parameters from PHP to Javascripts in plugins » Otto on WordPress

Much cleaner. One static and unchanging JS file to cache. Parameters get put into your HTML itself as a one-liner. You can deal with the parameters using a normal PHP array before passing them over. No need to screw around with generating Javascript from PHP or looking for wp-load or even messing with tricky actions. […]

Code WordPress

Storing Data in WordPress Plugins – A Quick Rundown

Coding better WordPress plugins As I’ve worked with WordPress plugins, I’ve learned new ways of working with WordPress. WordPress has tons of built-in functionality that is very useful and easy to use once discovered. I am by no means a great PHP coder. I am still learning OOP principles and how to write code better. […]