i'm just reseach wordpress for few days. But i don't know what keyword to reseach this problem:
I have 2 post module called hotel and room . In hotel page when i edit , it have a button to redirect to add new room in room module . this link is :
example.com/wp-admin/post.php?post_type=room&hotel_id=30
But when i edit a room , this link is:
example.com/wp-admin/post.php?post=31&action=edit
HOw can i add extra parameter to room edit to seperate which is room edit , which is hotel edit . Example:
example.com/wp-admin/post.php?post=30&action=edit (hotel)
example.com/wp-admin/post.php?post=31&hotel_id=30&action=edit (room)
Can anyone give me a solution or keyword to research . Thanks for reading