• Hello,

    I’m trying to use purgely_pre_send_keys hook to send my own keys.. but with not success.

    I’ve tried:

    
    add_action('purgely_pre_send_keys', 'custom_surrogate_keys');
    function custom_surrogate_keys($my_keys) {
      $my_keys->add_keys(array('email'));
    }
    

    But its not working…
    Can I get example how to use this function ?

    Thanks,
    Shani

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello Shani,

    new version with fix will be out soon. When version 1.2.2 is out, you can use this in functions.php of your theme:

    add_action('purgely_pre_send_keys', 'custom_surrogate_keys');
    function custom_surrogate_keys($keys_object) {
        $keys_object->add_key('custom-key');
    }

    Regards,
    Tomislav

    Thread Starter Shani Sherf

    (@uplinkk)

    Thank you for the update!
    Keep up the great work.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to use purgely_pre_send_keys hook’ is closed to new replies.