• Resolved Joshua

    (@estudovt)


    I would like to keep the copy protection enabled but disable only on the login page. Is it possible ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Joshua

    (@estudovt)

    * i mean not on /wp-login but in a specific page like /login or /access

    I want to make it easy for them to copy and paste the password that is sent to the email.

    Hi Joshua,

    There’s no easy way to do it, but it can be done by removing an action that inserts JavaScript snippet that implements copy protection (note: $aio_wp_security is a variable in global scope):

    remove_action('wp_footer', array($aio_wp_security, 'aiowps_footer_content'));
    

    You have to run it after init action with priority 0, so for example in init action with priority above 0 or in wp_loaded (not in after_setup_theme):

    function disable_copy_protection() {
      global $aio_wp_security;
      remove_action('wp_footer', array($aio_wp_security, 'aiowps_footer_content'));
    }
    add_action('wp_loaded', 'disable_copy_protection');
    

    Of course, you want to run the this code conditionally, ie. only on your login page. Since I don’t know what’s your login page like, I cannot give you any specific advice here.

    Cheers,
    ?eslav

    • This reply was modified 8 years, 3 months ago by ?eslav Przywara. Reason: typo: global, not globals
    Thread Starter Joshua

    (@estudovt)

    Thank you very much for your advice.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Copy protection Exception’ is closed to new replies.