Create a new write panel.
public Create ( string $name, string $description = '', array $standardFields = [], array $categories = [], integer $display_order = 1, string $type = FALSE, boolean $createDefaultGroup = true, $single_post, $default_theme_page = NULL, $default_parent_page = NULL, $expanded ) : the | ||
$name | string | write panel name |
$description | string | write panel description |
$standardFields | array | a list of standard fields ids that are to be displayed in in the panel. Use $STANDARD_FIELDS defined in MF_Constant.php |
$categories | array | array of category ids that are checked by default when the user opens Write tab for that panel. |
$display_order | integer | the order of the panel in Magic Fields > Write Panels tab |
$type | string | 'post' or 'page' |
$createDefaultGroup | boolean | indicates whether to create a default group. |
return | the | id of the write panel |