[wp-hackers] Hello, question on $_GET values with plugins

Firas D. fd at firasd.org
Thu Sep 15 15:01:50 GMT 2005


Try add_query_arg('gbedit', 1, $_SERVER['REQUEST_URI'])

Ryan M. Williams wrote:

>
> My plugin has an administrative interface under Manage which displays 
> data from its table.  It is essentially the same sort of interface as 
> the Manage Posts page.  Like that page I want to have hyperlinks 
> 'Edit' and 'Delete'.  So the url would include something like 
> '?gbedit=1' where the number is the id number of the entry I want to 
> edit.  If I just do that though I end up with an url: 
> WPURL/edit.php?gbedit=1  Adding the plugin filename ends up with 
> WPURL/wp-admin/plugin.php?gbedit=1  None of those work of course. 


-- 
http://firasd.org



More information about the wp-hackers mailing list