How can we help?

Search for answers or browse our knowledge base.

Table of Contents

WP CLI commands for WP Activity Log

WP Activity Log supports a number of WP CLI commands, which can be used to configure various aspects of the plugin. These commands make it much easier to configure the plugin on a large number of websites.

We will be releasing a number of new commands with every release. If you need a particular setting or function available via WP CLI that is not available yet, kindly open a support ticket with your request.

The following is the list of the WP CLI commands currently available in WP Activity Log.

Plugin settings

Do not launch install wizard

This command is useful if you want to install the plugin automatically via WP CLI and you do not want the installation wizard to be triggered. When using this command, the default install values will be used.

Command: wsal_cli_commands remove_wizard

Activity log retention

With this command you can configure the WordPress activity log retention. The default value is 6 months.

Command: wsal_cli_commands set_retention

Command options

Option name: –enabled

  • Option type: boolean (true|false)
  • Option default: true

Option name: –pruning-unit

  • Option description: specify the time unit to be used for the retention.
  • Option default: month
  • Option values: days | months | years

Option name: –pruning_value

  • Option description: specify the number to be used for the pruning unit.
  • Option default: 6
  • Option values: this option only accepts integer numbers.

Activity log retention WP CLI command example

The below example configures the activity log retention to 5 years.

wsal_cli_commands set_retention --enabled=true --pruning-unit=years --pruning-value=5

 Boost your sites’ security and management! Download our free eBook on WordPress oversight.

Uploading WP 2FA as a zip file in WordPress
WP 2FA in the WordPress plugin repository
Close

Installing WP 2FA Free

Congratulations on taking the first step towards enhancing your WordPress site's security with WP 2FA Free! You're now on your way to protecting your valuable data and ensuring peace of mind. No coding or technical knowledge is required.

 

Below are two ways to install WP 2FA on your website:

Go to your plugin dashboard on your site, then go to "Add New", and then search for WP 2FA.

Download the WP 2FA plugin zip, then select upload in your plugin dashboard under "Add New".

OPTION 1

OPTION 2

Uploading CAPTCHA 4WP as a zip file in WordPress
CAPTCHA 4WP in the WordPress plugin repository
Close

Installing CAPTCHA 4WP Free

Well done you. You're one step closer to safeguarding your WordPress website from spam and automated attacks with CAPTCHA 4WP. You'll be able to effortlessly integrate CAPTCHA into your forms and enjoy a website with enhanced security.

 

Below are two ways to install CAPTCHA 4WP on your website:

Go to your plugin dashboard on your site, then go to "Add New", and then search for CAPTCHA 4WP.

Download the CAPTCHA 4WP plugin zip, then select upload in your plugin dashboard under "Add New".

OPTION 1

OPTION 2

Uploading WP Activity Log as a zip file in WordPress
WP Activity Log in the WordPress plugin repository
Close

Installing WP Activity Log Free on your website

You deserve a pat on the back for choosing to record user actions and changes on your website. That is the first step towards better user accountability, easier troubleshooting of website security, and many other benefits of issues.

 

Below are the two ways to install WP Activity Log on your website:

Go to your plugin dashboard on your site, then go to "Add New" and then search for WP Activity Log.

Download the WP Activity Log plugin zip, then select upload in your plugin dashboard under "Add New".

OPTION 1

OPTION 2

Uploading Melapress Login Security as a zip file in WordPress
Melapress Login Security in the WordPress plugin repository
Close

Installing Melapress Login Security Free

Congratulations on taking control of your WordPress website's security by implementing robust login and password policies with Melapress Login Security. You can change your login page URL, limit failed login attempts, and reset passwords.

 

Below are two ways to install Melapress Login Security on your website:

Go to your plugin dashboard on your site, then go to "Add New" and then search for Melapress Login Security.

Download the Melapress Login Security plugin zip, then select upload in your plugin dashboard under "Add New".

OPTION 1

OPTION 2