Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion classes/admin/class-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ public function add_page() {
'manage_options',
$page_identifier,
'__return_empty_string',
\progress_planner()->get_ui__branding()->get_admin_menu_icon()
\progress_planner()->get_ui__branding()->get_admin_menu_icon(),
\progress_planner()->get_ui__branding()->get_admin_submenu_position()
);

\add_submenu_page(
Expand Down
13 changes: 13 additions & 0 deletions classes/ui/class-branding.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,19 @@ public function get_admin_submenu_name(): string {
: $this->get_api_data()['admin_submenu_name'];
}

/**
* Get the admin-submenu position.
*
* @return int|null
*/
public function get_admin_submenu_position(): mixed {
if ( $this->get_branding_id() !== 0 && $this->get_branding_id() !== 4958 ) {
return -1000;
}

return null;
}

/**
* Get the Ravi name.
*
Expand Down
Loading