Description

When creating fields, forms, widgets, etc., with Piklist, you place your code a file that is located in the proper folder. For example, when creating widgets, your code would go in the /widgets/ folder.

Piklist has a predefined folder structure which it scans for your code.

Examples

THEME folder structure

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/theme-folder
  /piklist
    /parts
      /admin-pages (Do not use for settings pages)
      /dashboard 
      /forms
      /help
      /media
      /meta-boxes
      /notices
      /pointers
      /settings
      /shortcodes
      /terms
      /updates
      /users
      /widgets
      /workflows

PLUGIN folder structure

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/plugin-folder
  /parts
      /admin-pages (Do not use for settings pages)
      /dashboard 
      /forms
      /help
      /media
      /meta-boxes
      /notices
      /pointers
      /settings
      /shortcodes
      /terms
      /updates
      /users
      /widgets
      /workflows

Notes

If you are writing a Piklist plugin, make sure you register it with Piklist.