Getting current screen (page) without $_GET[‘page’];

 

$get_current_page = str_replace('_page_','',strstr( current_filter(), '_page_',false) ) ;
// then you can do:
<form method="post" action="<?php echo add_query_arg(array('page' => $cph), admin_url().'admin.php' )?>">

Similar Posts

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir