• I created a custom WordPress plugin on activating it an admin will enter the secret key if key validates successfully in front-end user can see the plugin related data/pages etc. My question is what will be better way to create plugin pages? If on plugin activation create a post having type ‘page’ or create pages in plugin folder only and access them directly in the browser using URL rewrite?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    It’s impractical to request plugin files directly, even through rewrites, if your file utilizes WP resources. Such an approach will not be 100% portable to other installations. It’s grounds for rejection if you submit your plugin for the WP repository. Invoke your code through a page template, admin-ajax.php, or admin-post.php. There really aren’t any other good options.

    • This reply was modified 4 years, 11 months ago by bcworkz.
Viewing 1 replies (of 1 total)
  • The topic ‘Custom Plugin Performance and Security’ is closed to new replies.