[wp-hackers] Plugin replacing a page based on http variables

Jennifer Hodgdon yahgrp at poplarware.com
Mon Sep 24 16:03:47 GMT 2007


James Davis wrote:
> I'd like to be able to provide a link on my plugin's management page to
> export the data held in a custom table to a CSV file. I've tried the
> admin-head action but that's not called early enough to generate a plain
> text page.

I think your best bet is to just put a link on your management page 
directly to your plugin PHP file (or a secondary file in your plugin 
distribution, e.g. a link to 
(blogurl)/wp-content/plugins/myplugin_csv.php). That would bypass all 
the admin header stuff. Of course, don't assume that any WordPress 
files have been loaded! I don't think you can do what you want via the 
standard admin menus.

      --Jennifer

-- 
Jennifer Hodgdon

Poplar ProductivityWare * www.poplarware.com
Web Databases/Scripts * Modeling/Analysis/Palm OS Software



More information about the wp-hackers mailing list