简体   繁体   中英

parameters in url is automatically deleted in wordpress

I built a custom plugin on which I get the value of parameter to validate my page,
Here is my sample code:

www.test.com/user/?page="Parameter"

 <?php if(empty($_REQUEST['page'])) { ?>
Landing Page
 <?php }else if( $_REQUEST['page'] == 'add_User'){ ?>
Add User
   <?php }else if( $_REQUEST['page'] == 'edit_User'){
Edit User
<?php } ?>

But my problem is wordpress automatically removes the page="Parameter part" .

"?page" is a reserved word that is why it is automatically culled.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM