Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kylephillips/7bf13b30d15e62309aecbf687df25656 to your computer and use it in GitHub Desktop.
Save kylephillips/7bf13b30d15e62309aecbf687df25656 to your computer and use it in GitHub Desktop.
<?php
// Place this in functions.php
add_filter('nestedpages_default_submenu_text', 'defaultPagesText', 10, 2);
function defaultPagesText($text, $post_type)
{
return ( $post_type->name == 'page' ) ? 'WordPress Pages' : $text;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment