Created
August 28, 2018 10:56
-
-
Save vanbo/d1ea05814484fd2d3b63fbf451f2e318 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter( 'wc_borica_certificates_password', 'prefix_set_private_key_password', 10, 2 ); | |
| function prefix_set_private_key_password( $default, $password_type ) { | |
| $pass = $default; | |
| if ( 'private_key' == $password_type ) { | |
| // Replace 'set_your_pass' with your actual private key password. | |
| $pass = 'set_your_pass'; | |
| } | |
| return $pass; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment