File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ trait WPB_Menu_Export {
8
8
* passed options in the command.
9
9
*
10
10
* @since 0.1.0
11
+ * @since 0.1.1 Includes the advanced menu properties to the export file.
12
+ *
11
13
* @access private
12
14
*
13
15
* @param array $args The required arguments.
@@ -47,10 +49,15 @@ private function export( $args, $assoc_args ) {
47
49
48
50
foreach ( $ items as $ item ) {
49
51
$ export_item = array (
50
- 'slug ' => $ item ->ID ,
51
- 'parent ' => $ item ->menu_item_parent ,
52
- 'title ' => $ item ->title ,
53
- 'type ' => $ item ->type ,
52
+ 'slug ' => $ item ->ID ,
53
+ 'parent ' => $ item ->menu_item_parent ,
54
+ 'title ' => $ item ->title ,
55
+ 'type ' => $ item ->type ,
56
+ 'target ' => $ item ->target ,
57
+ 'attr_title ' => $ item ->attr_title ,
58
+ 'description ' => $ item ->description ,
59
+ 'classes ' => $ item ->classes ,
60
+ 'xfn ' => $ item ->xfn ,
54
61
);
55
62
56
63
switch ( $ item ->type ) {
You can’t perform that action at this time.
0 commit comments