Change WordPress user roles and capabilities › Forums › Restrict or Permit access inside WordPress – how to › Question Implementing: Restrict the list of parent pages › Reply To: Question Implementing: Restrict the list of parent pages
This code removes items from the “Parent” menu at the “Page attributes” meta box of the page editor.
Do not touch ’10, 2′ values. 10 – is a priority of execution, 2 – is a quant of parameters in use.
Page ID at the code sample is 47. If you need to remove a list of pages, add IDs as a comma separated list:
$args['exclude'] = array(47, 52, 67);
You may find page ID at the pages list – look post parameter value at the ‘Edit’ link under needed page. For example:
Page ID is 876 for the link above.