Lock Pages prevents specified pages (or all pages) from having their slug, parent, status or password edited, or from being deleted, by non-administra
$thispluginpath, introduced use of
lock_deletionto account for different
add_options_page()to match the capability setting in the plugin, i.e. only users with the capability to edit "locked" pages can change the plugin settings.