// 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.
Steenbakkerij 29
2913 LJ 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 |
Contact us