Enable trash feature for media

by | 6 August 2018 | WordPress | 0 comments

By default, media files that you delete in the media browser are permanently deleted. However, WordPress has a trash can feature that is disabled by default. Fortunately, this can be switched on.

To enable this feature, you must add the code below to the wp-config.php file

// Switch on media trash
define (‘MEDIA_TRASH’, true);

Once you have done this, the permanent removal option will be replaced by trash.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *