HPWD
HPWD

Reputation: 2240

Is it possible to have a non-standard page in the admin area?

Client has a database table that is not a part of their wordpress environment but is alongside their other WP Tables (multiple departments access it). They'd like to use the wordpress admin interface to access a form so they can add content to this non-wordpress table (some other department pulls data from it).

Scenario:

  1. The user logs into their WP Admin area
  2. They click the link "Bob's Crab Shack" link from the left nav bar
  3. They fill out the form and click save
  4. The other department would have their own CRUD UI (not my concern).

Is this possible? If so, any guides or tutorials on how to set this up? Wordpress (PHP) isn't my primary coding language.

Upvotes: 0

Views: 31

Answers (1)

Bjorn
Bjorn

Reputation: 759

Wordpress isn't a language ;-)

Is this possible?

Sure, this isn't that hard to do.

  1. Create an admin page: Normal menu page or a Submenu page.
  2. Create the HTML form and PHP submit-logic.
  3. Because all DB tables are in the same DB you can use $wpdb for DB processing (does al the heavy lifting for you), more info here.

Regards, Bjorn

Upvotes: 1

Related Questions