Skip to content

Commit fdd46d4

Browse files
committed
FEATURE: Includes the advanced menu properties to the export file
1 parent fb04eb0 commit fdd46d4

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

includes/trait-export.php

+11-4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ trait WPB_Menu_Export {
88
* passed options in the command.
99
*
1010
* @since 0.1.0
11+
* @since 0.1.1 Includes the advanced menu properties to the export file.
12+
*
1113
* @access private
1214
*
1315
* @param array $args The required arguments.
@@ -47,10 +49,15 @@ private function export( $args, $assoc_args ) {
4749

4850
foreach ( $items as $item ) {
4951
$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,
5461
);
5562

5663
switch ( $item->type ) {

0 commit comments

Comments
 (0)