I've done this small plugin. If activated, when you try to create a page you get redirected to the admin panel's main page.
Copy and save as nonewpages.php in your plugins folder.
Edit, 0.2: I've updated it. Now it also hides the 'create new page' link (in GS 3.1).
Edit, 0.3: Hides dropdown (that allowed creating by cloning an existing page)
Code:
<?php
// register plugin
$thisfile = basename(__FILE__, ".php");
register_plugin(
$thisfile,
'No New Pages',
'0.3',
'Carlos Navarro', '#',
'Prevents creation of new pages', '', ''
);
add_action('header','nonewpages');
function nonewpages() { ?>
<style type="text/css">
#sb_newpage { display:none; }
#submit_line #dropdown { display:none; }
</style>
<?php
if (basename($_SERVER['PHP_SELF'])=='edit.php') {
if (!isset($_GET['id'])) {
global $cookie_redirect;
redirect($cookie_redirect);
}
}
}
// end of file
Copy and save as nonewpages.php in your plugins folder.
Edit, 0.2: I've updated it. Now it also hides the 'create new page' link (in GS 3.1).
Edit, 0.3: Hides dropdown (that allowed creating by cloning an existing page)