Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function dropdown_link( $dropdown )
- {
- if ( is_user_logged_in() )
- {
- $item['account'] = array(
- 'text' => jnews_return_translation($this->endpoint['account']['title'], 'jnews', $this->endpoint['account']['label']),
- 'url' => esc_url( home_url( '/' . $this->endpoint['account']['slug'] ) )
- );
- if ( isset( $item ) )
- {
- if (in_array('account', $dropdown)) {
- $dropdown = array_merge( $dropdown, $item );
- } else {
- $dropdown = array_merge( $item, $dropdown );
- }
- }
- }
- return $dropdown;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement