Can a WordPress plugin add read-only pages?

(This applies regardless of whether its done in WordPress or PHP directly, assuming the files and databases can all be connected to by the website owner set up in Apache).

For a typical wordpress setup anything you do within WordPress or PHP can be bypassed by a WordPress admin user (think how backup programs like Updraft works). You can make this a lot harder to do and obfusicate it so your typical WordPress user can’t find or access the pages. Once you have the ability to log in to WordPress as an administrator you can create/find a plugin that can do arbitrary things as that user and WordPress can’t prevent this.

In order to do this properly you would need to have the PHP code running as a different user and either a separate database or user restrictions on who can access the tables.

If you want to just make it so that the typical user can’t modify these pages or find them in the admin panel then that is a lot simpler and is doable.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)