php - transferring a variable through different web pages in wordpress -
currently i'm building plug-in wordpress, have couple of webpages tables, filled data database. right i'm working on part click on number (memberid) should redirect page, having information table regarding number. i've tried transfering data through url, both
?memberid=".$item->memberid."
and
/memberid="$item->memberid."
, everytime try alter url, webpages can't seem find anymore. i'm sure has whith part of code:
add_submenu_page( null , 'manage memberdetails' , 'memberdetails' , 'manage_options', 'memberdetails' , 'memberdetails_list' );
where fifth value sets url page be
http://localhost/wordpress/wp-admin/admin.php?page=memberdetails
so whenever try add behind url, doesn't acknowledge existance of said page anymore, resulting in redirection error.
is there way transfer variable without using url, or there way give more of dynamic url?
you using add_submenu_page wrong. first param required , can not null.
https://codex.wordpress.org/function_reference/add_submenu_page
you need fixed first page works.
Comments
Post a Comment