You want to install a plugin on your local machine to test it out before pushing it live. Trouble is, WordPress is inconveniently prompting for FTP or SFTP credentials. Let’s solve that.
A solution to removing the last trailing divider in a WP_Nav_Menu. This is achieved through a WordPress function that adds a unique class to the last menu item, which can then be used to set the display property to none on the last divider.