diff --git a/includes/adminpages.php b/includes/adminpages.php index dd9cd130e..328723875 100644 --- a/includes/adminpages.php +++ b/includes/adminpages.php @@ -704,6 +704,10 @@ function pmpro_add_action_links( $links ) { } } + if ( empty( $top_menu_page ) ) { + return $links; + } + $new_links = array( 'Settings', );