Skip to content

Commit 23617b8

Browse files
author
Maxime CULEA
committed
use MPT cpt name
1 parent 7a2af5e commit 23617b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

classes/admin/class-export.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public function __construct() {
66
}
77

88
public static function admin_menu() {
9-
$hook = add_submenu_page( 'edit.php?post_type=member', self::get_page_title(), self::get_page_title(), 'manage_options', 'member-export', array( __CLASS__, 'page' ) );
9+
$hook = add_submenu_page( 'edit.php?post_type=' . MPT_CPT_NAME, self::get_page_title(), self::get_page_title(), 'manage_options', 'member-export', array( __CLASS__, 'page' ) );
1010
add_action( 'admin_head-' . $hook, array( __CLASS__, 'admin_head' ) );
1111
}
1212

classes/admin/class-import.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public function __construct() {
88
}
99

1010
public static function admin_menu() {
11-
$hook = add_submenu_page( 'edit.php?post_type=member', self::get_page_title(), self::get_page_title(), 'manage_options', 'member-import', array( __CLASS__, 'page' ) );
11+
$hook = add_submenu_page( 'edit.php?post_type=' . MPT_CPT_NAME, self::get_page_title(), self::get_page_title(), 'manage_options', 'member-import', array( __CLASS__, 'page' ) );
1212
add_action( 'admin_head-' . $hook, array( __CLASS__, 'admin_head' ) );
1313
}
1414

0 commit comments

Comments
 (0)