#1787
Vladimir
Keymaster

Hi,

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:


wp-admin/post.php?post=876&action=edit

Page ID is 876 for the link above.