(→Usage) |
(→Usage) |
||
| Line 20: | Line 20: | ||
?></syntaxhighlight> | ?></syntaxhighlight> | ||
| − | NB: <tt>my_pagelines_welcome_features</tt>is an example name, please use a more appropriately named function in your code. Also to note, 'my-textdomain' should be the same textdomain you are using for your theme. | + | The array of arrays consists of an array of features; and each feature consists of an array consisting of the following items: |
| + | * <tt>name</tt> - The display name of the feature. | ||
| + | * <tt>desc</tt> - The description of the feature. | ||
| + | * <tt>class</tt> - The specific CSS class being used as an element container displayed on the theme Welcome page. | ||
| + | * <tt>icon</tt> - ... | ||
| + | |||
| + | NB: <tt>my_pagelines_welcome_features</tt> is an example name, please use a more appropriately named function in your code. Also to note, ''my-textdomain'' should be the same textdomain you are using for your theme. | ||
pagelines_welcome_features is used by get_welcome_features to return an array of the theme features on the theme Welcome page.
array(
'name' => __( 'My First Feature', 'my-textdomain' ),
'desc' => __( 'This the description for My First Feature', 'my-textdomain' ),
'class' => __( 'feature_dynamic' ), /* CSS class - borrowed for example purposes */
'icon' => '',
),
);
return $my_features;
}
?>
The array of arrays consists of an array of features; and each feature consists of an array consisting of the following items:
NB: my_pagelines_welcome_features is an example name, please use a more appropriately named function in your code. Also to note, my-textdomain should be the same textdomain you are using for your theme.