add_filter( 'jnews_dropdown_link', 'j_edit_account_dropdown', 99 ); function j_edit_account_dropdown( $dropdown ) { if ( is_user_logged_in() ) { $new_dropdown = array(); if ( isset( $dropdown['edit-account'] ) ) { $new_dropdown['edit-account'] = $dropdown['edit-account']; } if ( isset( $dropdown['logout'] ) ) { $new_dropdown['logout'] = $dropdown['logout']; } if ( isset( $new_dropdown ) ) { return $new_dropdown; } } return $dropdown; }