-
I use this snippet to set actions/filters only when they are needed (no admin actions if we are no there and vice versa):
```
protected function __construct() {
$this->_actionsCommon();
if (…
-
I usually privatize the `__clone()` magic method in singletons I write. Technically, if I understand cloning correctly, PHP will still make the shallow copy of the cloned object in memory, but then w…
-
Hi,
i've used boiler plate as a template for my plugin.
https://github.com/emeraldjava/bhaawp
At the moment I define my Custom Post Type classes in the 'public' area. I placed it here since i expe…
-
https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate
There should be a grep be `* Version` as well, currently it does only work if the Version is at the line beginning.
Also plugins with this…
-
I'm using the latest version of boilerplate html5 wich includes respond.js and in IE8 the browser just crashes after loading the page.
Removing it works (doesn't crash but of course media queries don'…
-
Hi,
I'm trying to test out this plugin on one of my own plugins that I just put up on Bitbucket. I can get everything working to the point where I can see that there is an update available, but when …
-
At this point, I'm interested in moving the `assets` directory above the root of the plugin directory.
This is the follow the new practices of the WordPress Theme repository (as @GaryJ) has pointed …
-
By plugin do you mean edit custom.php or functions.php and include the PHP file? Or is there some kind of API hook I should be using?
Thanks for the great work, btw. This is my default WP boilerplate…
-
The 'plugin-name/plugin-name.php' file should include the version of WordPress-Plugin-Boilerplate from which the new plugin is starting.
```
* GitHub Plugin URI: https://github.com//
* WordPress-Plu…
-
The uninstall.php file will work perfectly fine if it is a multisite but if it's not the $wpdb will not be declared and database queries will not execute.
Declare it outside the if block and it's all…