Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'jnews_dropdown_link', 'remove_additioanl_dropdown', 99 );
- function remove_additioanl_dropdown( $dropdown ) {
- if ( is_user_logged_in() ) {
- $new_dropdown = array_filter(
- $dropdown,
- function ( $key ) {
- return 'account' === $key || 'logout' === $key;
- },
- ARRAY_FILTER_USE_KEY
- );
- return $new_dropdown;
- }
- return $dropdown;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement