New answers tagged

0

The base argument for paginate_links() should be: admin_url( 'admin.php?page=lismovim-withdraw-slug&paged=%_%' ) ... where %_% is replaced by format, which should be: '%#%' ... which is replaced by the page number.


0

Well guys i post answet for anybody interested! I edited mr_permissions_roles_admin_page_restriction function because i noticed one thing: the restrictions i save are URL! so well here it is: function mr_permissions_roles_admin_page_restriction($screen) { $block=FALSE; $url=str_replace('/wp-admin/','',$_SERVER['REQUEST_URI']); global $menu; ...


0

WordPress has a fairly good roles and capabilities system already and, IMHO, you'd find it easier working with that. When the admin menu is constructed, every item on the admin menu is subject to a check on a relevant capability. Similarly every attempt to use an admin screen is checked. It's possible to use map_meta_cap to rework some of these ...



Top 50 recent answers are included