Custom Path for a Plugin

Well this one is tricky. function my_plugin_query_vars($vars) { // add mypluginname to the valid list of variables $new_vars = array(‘mypluginname’); $vars = $new_vars + $vars; return $vars; } add_filter(‘query_vars’, ‘my_plugin_query_vars’); this will tell WordPress to accepts GET variables with the name mypluginname. so now you can process requests like http://www.example.com?mypluginname=param1 We add an action on … Read more

What should I pass for $needed_dirs when calling _unzip_file_pclzip (aka PclZip)?

@Scott B I have not tested this script, taken from inlcudes/file.php -> line 559 _unzip_file_pclzip assumes WP_Filesystem() has already been called, so you need to set up global $wp_filesystem global $wp_filesystem; $needed_dirs = array(); $target = trailingslashit($target); // Determine any parent dir’s needed (of the upgrade directory) if ( ! $wp_filesystem->is_dir($target) ) { //Only do … Read more

Is there any way to pass messages from a script to a redirect target in a hidden fashion?

Hehe, got it meself, just a little too late, unfortunately, now i have to change half the stuff again… set_transient(), get_transient() and delete_transient() will be my friends Edit: More on this…i now realized that my wp_options table is full of _transient_xyz records, coming from WP itself. So that indicates that WP is using the db … Read more

“Rendering of admin template [path to template] failed”

Looks like an error related to the HeadSpace2 plugin, see. http://urbangiraffe.com/support/topic/rendering-of-admin-template-failed-2 http://urbangiraffe.com/support/topic/rendering-of-admin-template-failed-continued Perhaps the plugin has template support which you’ve enabled but not created the appropriate file for in the theme? I have no idea, i don’t use the plugin, just thinking out loud.. Hope that helps.

How to show multiple instances of the WP125 Widget?

You have two options: Create the widget yourself with the “new” widget api as a class an it will be multiple instance widget. Or find the line that registers the widget and register the same widget with a new name for example find: register_sidebar_widget(array(‘Content License’, ‘widgets’), ‘widget_cc’); and replace with: register_sidebar_widget(array(‘Content License 1’, ‘widgets’), ‘widget_cc’); … Read more

WP plugin repository didn’t parse readme.txt correctly

You can add a short piece of text above the description that will be the “short description”. You may need a blank line above and below. If it is not there, then the wp parser uses the first x characters of the description like this http://plugins.svn.wordpress.org/amr-ical-events-list/trunk/readme.txt http://plugins.svn.wordpress.org/amr-ical-events-list/trunk/readme.txt