• hello, I have a code:

    // Register Replacement
    function register_replacement(){
    	if ( ! is_user_logged_in() ) {
    		if ( get_option('users_can_register') )
    			$link = '<option value="' . site_url('wp-login.php?action=register', 'login') . '">' . __('Register') . '</option>';
    		else
    			$link = '';
    	} else {
    		$link = '<option value="' . admin_url() . '">' . __('Site Admin') . '</option>';
    	}
    	return $link;
    }

    I want to add an

      to ‘Site admin’ (so there will show up menu on mouse over)

      Site Admin
        <ul class="children">
          <li>https://link1</li>
          <li><https://link2></li>
         </ul>

      Is it possible to do that?

  • The topic ‘little modification in function.php’ is closed to new replies.