• Is there a way to use Command line interface for WordPress | WP-CLI to (dis/en)able access to wp-admin?

    example:

    [root@wcmisdlin02 ~]# wp --allow-root --path=/usr/share/wordpress/ option get siteurl
    WordPress database error Table 'dchorine3.wp_itsec_lockouts' doesn't exist for query SELECT <code>lockout_host</code> FROM <code>wp_itsec_lockouts</code> WHERE <code>lockout_active</code>=1 AND <code>lockout_expire_gmt</code> > '2014-07-02 20:27:13' AND <code>lockout_host</code>='127.0.0.1'; made by include('phar:///usr/local/bin/wp/php/boot-phar.php'), include('phar:///usr/local/bin/wp/php/wp-cli.php'), require('phar:///usr/local/bin/wp/php/wp-settings-cli.php'), do_action('init'), call_user_func_array, ITSEC_Lockout->check_lockout
    http://localhost/wordpress
    [root@wcmisdlin02 ~]#

    I’m not sure why I’m getting database error, but last line of output providers me “option get siteurl”, which is “http://localhost/wordpress&#8221; in my case.

    https://wordpress.org/plugins/better-wp-security/

  • The topic ‘wp-cli to (dis/en)able access to wp-admin?’ is closed to new replies.