Christmas SALE 25% OFF on new purchases, early renewals or upgrades. Apply Discount
Start Protecting your WordPress Downloads
Protect and track downloads on WordPress... What are you waiting for?
Christmas SALE 25% OFF on new purchases, early renewals or upgrades. Apply Discount
If you’re using Download Monitor and wish to disable the reports section, you can easily achieve this by adding a simple line of code to your WordPress site. The following documentation will guide you through the process:
Before proceeding, ensure that you have:
To disable the reports section in Download Monitor, follow these steps:
Step 1: Access Your WordPress Dashboard
Log in to your WordPress admin panel: https://your-domain.com/wp-admin
Step 2: Locate Your Child Theme’s functions.php
File
It is recommended to make this customization in a child theme if you are not already using one. This ensures your changes won’t be lost when you update the main theme. Navigate to your child theme’s directory, typically found at wp-content/themes/your-child-theme/
.
Step 3: Edit the functions.php
File
Open the functions.php
file within your child theme in a code editor or use the built-in WordPress theme editor.
Step 4: Add the Filter Function
Inside the functions.php
file, add the following code snippet at the end:
add_filter( 'dlm_enable_reports', '__return_false' );
Adding this code in functions.php will effectively disables the reports section in Download Monitor.
Step 5: Save the File
Save the functions.php
file after adding the code.
Step 6: Verify the Change
Now, when you access the Download Monitor section in your WordPress dashboard, you will notice that the reports section is no longer available.
By following these simple steps and adding the provided code snippet to your child theme’s functions.php
file, you have successfully disabled the reports section in Download Monitor. This customization can be beneficial in situations where you don’t require download reports and want to streamline the user interface.
Keep in mind that the Download Monitor plugin may receive updates, but your customization will remain intact in your child theme’s functions.php
file, ensuring a smooth and consistent user experience on your website.
Protect and track downloads on WordPress... What are you waiting for?