Adding Trash / Delete Button to WordPress Admin Bar.
Level 2 Team
started a topic
almost 8 years ago
Thanks for wpengineer.com 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:
Level 2 Team
Thanks for wpengineer.com 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: