Tag Archives: php

Snippets with Emacs Lisp Power

The YASnippet package for Emacs has some pretty awesome power for the developer, especially when you utilize the power of Emacs Lisp.

YASnippet was inspired by TextMate, which was inspired by Emacs, in a highly-out-of-equilibrium whirlwind of self-referential creativity.
The screencast above uses a set of snippets I originally took from this [...]

Posted in Development, emacs, wordpress | Also tagged , , , , , , , , , , | Leave a comment

How to get your command line PHP script working with WordPress-MU 2.7

OK, this one is obscure. I only post about what I can’t find on Google!
Until recently it has been possible to run command-line PHP scripts that include wp-config.php or wpmu-settings.php, in order to give those scripts access to WordPress globals like $wpdb, functions such as wp_insert_post etc.
These scripts worked with WordPress-MU until recently [...]

Posted in Development, wordpress, wordpress-mu | Also tagged , , , , , | Leave a comment

How to give all new WPMU blogs default properties, theme and pages

I’ve been developing an application on Wordpress-MU and thought I’d share a cool tip.
When new web sites are generated by my client, I wanted the experience to be painless; a one-button ready-to-go web site.
It turns out there is an action hook (of course there is!) when a new blog is created.  So let’s get down [...]

Posted in Development, wordpress | Also tagged , | 5 Comments