Julian
Julian

Reputation: 9130

How to create a custom admin panel in WordPress for an existing non-WordPress application

I have an existing PHP/MySQL application (non-WP). I'm showing bits and pieces of this application via iframes in a WP site. Right now the client has two admins; WP and my own custom admin and it's inconvenient for them.

What I want to achieve is to be able to show my custom admin inside WP. Every section of my admin is quite simple and with few controls so I don't mind doing a re-write to adapt this code to WP.

Having never really developed anything related to WordPress I need to know conceptually how to approach this. I don't need for code samples but rather the steps involved in all of this. Any gotchas from experienced WP developers are quite welcome too.

Upvotes: 0

Views: 436

Answers (1)

napolux
napolux

Reputation: 16074

I think you can develop a WordPress plugin for your non-WP application.

Here's the approach I would try (you only say your app is quite simple, so I'm just assuming it's made of few pages/forms):

  • Create a plugin that leverage WP authentication
  • Show your app inside iframes in the WP admin panel
  • Change your app UI in order to match or use the WP admin panel one.

I did this in the past and having an iframe to be showed in the WP admin it's quite easy and users are happy to have just one authentication point.

Upvotes: 2

Related Questions