Difference between revisions of "Zen Cart plugin"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(Created page with "A Zen Cart plugin is a plugin for WordPress. == zen_register_admin_page == zen_register_admin_page ($page_key, $language_key, $main_page, $page_par...")
(No difference)

Revision as of 09:35, 13 October 2015

A Zen Cart plugin is a plugin for WordPress.

zen_register_admin_page

zen_register_admin_page ($page_key, $language_key, $main_page, $page_params, $menu_key, $display_on_menu, $sort_order);

Where:

  • page_key is a unique text id
  • language _key is the name of the define for the page name that would previous have been used in the box files (for compatibility with existing language packs)
  • main_page is the define starting FILENAME_ used in the box file and code to direct to the admin page
  • page_params are whatever parameters are needed for the page (generally relevant only to configuration and modules pages
  • menu_key is a foreign key for the admin_menus table
  • display_on_menu is a char with value "Y" or "N" depending on whether it's a page visible on the admin menu, or a subpage called by another page
  • sort_order is a numeric value indicating how high up the menu the entry would appear, a high value sinks it down

Source:

See also