Ambrosite Unlink Parent Pages - Options
term_id) ) {
echo '
IMPORTANT: Unlink Parent Pages has detected custom menus. This plugin is not compatible with the WordPress 3.x custom menu system (that is, menus created using the drag-and-drop menu builder under Appearance->Menus). If you want to create an unlinked parent menu item with the menu builder, use a \'Custom Link\' with a \'#\' (hash/pound) mark in the URL field.
';
break;
}
} ?>
9999 )
$input['maxdepth'] = 0;
$input['expages'] = preg_replace('/[^0-9,]/', '', $input['expages']);
return $input;
}
// Init plugin options to white list the options
function ambrosite_unlink_parents_init(){
register_setting( 'ambrosite_unlink_parents_options', 'ambrosite_unlink_parents', 'ambrosite_unlink_parents_validate' );
}
add_action('admin_init', 'ambrosite_unlink_parents_init' );
?>