Gets restriction options, grouped by subject: PrivateContent categories plus the ones added by add-ons through pc_user_cat_dd_opts. The onlyvals_restr_opts_arr() method, having the same parameters, returns a flat array (value => label).
Gets post types affected by the restrictions engine. affected_tax() does the same with taxonomies. They can be extended through pvtcont_affected_pt and pvtcont_affected_tax.
CSRF protection: checks whether the request comes from the website itself, through the browser Origin header. Requests without that header are accepted, to not break old browsers. Allowed hosts can be extended through pc_same_origin_allowed_hosts.
Recursively sanitizes submitted data: plain texts pass through sanitize_text_field() logic (keeping line breaks), while values containing HTML pass through an extended wp_kses_post().
Gets the login cookie expiration timestamp, considering "remember me" (2 weeks), short-lived logins (10 minutes) or standard ones (1 hour). Customizable through pc_login_cookie_duration.
Obfuscates a number, to not show it directly on frontend (eg. registration form IDs). decrypt_number($string) reverts it. This is not an encryption: never use it to protect sensitive data.