Start a new topic

Adding Trash / Delete Button to WordPress Admin Bar.

Thanks for for this tricks will a little piece of code. To use this, just copy the following snippet into your functions.php file. (Appearance > Edit > Theme Functions – functions.php or editing via FTP)

 And here is the result:


Note: If you’d like to change the name of button from “Move to Trash” to something else like “Delete,” then just change the text inside of the single quotation marks in this section:

Login or Signup to post a comment