// block pages for editor
function menu_redirect() {
$result = false;
$linksToAllow = array(
'index.php',
'edit.php?post_type=page',
'edit.php?post_status=trash&post_type=post',
'edit.php?post_status=trash&post_type=page',
'post-new.php?post_type=page',
'edit.php?page=cms-tpv-page-post',
'post.php',
'edit.php',
'media-new.php',
'upload.php',
'post-new.php'
); // Links to allow
foreach ($linksToAllow as $key=>$value) {
$result = stripos($_SERVER['REQUEST_URI'], $value);
if ($result!==false) {
$result = 'blah';
break;
}
}
if ($result!=='blah') {
$linksToBlock = array(
'/wp-admin/'
); // Links to block
foreach ($linksToBlock as $key=>$value) {
$result = stripos($_SERVER['REQUEST_URI'], $value);
if ($result!==false) {
$result = 'something';
break;
}
}
}
if ($result==something) {
wp_redirect(get_option('siteurl') . '/wp-admin/index.php');
}
}
add_action('admin_menu', 'menu_redirect'); ?>
Contact | Pandarecycling.com
Address PANDA RECYCLING B.V.
Kerklaan 12
2911 AD Nieuwerkerk aan den IJssel
The Netherlands
Telephone +31 (0)180 – 756177 info@pandarecycling.com
Registration and bank details
Company registration no:
56655193
VAT number:
NL 852240302 B01
Bank:
ABN AMRO N.V., Rotterdam
Account number EUR:
41 58 28 910
IBAN:
NL 42ABNA 0415 82 89 10
Account number USD:
47 25 83 018
IBAN:
NL 21ABNA 0472 58 30 18
SWIFT/BIC:
ABNA NL 2A
Address: Panda Recycling B.V.
Vecht 125
2911 ER Nieuwerkerk aan den IJssel
The Netherlands
Telephone +31 (0)180 – 756177
Mobile +31 (0)6 52 85 27 16 info@pandarecycling.comAddress: Panda Recycling B.V.
Vecht 125
2911 ER Nieuwerkerk aan den IJssel
The Netherlands
Telephone +31 (0)180 – 756177
Mobile +31 (0)6 52 85 27 16 info@pandarecycling.com
Contact us
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume you agree.AcceptMore info