Skip to content

Instantly share code, notes, and snippets.

@vanbo
Created August 28, 2018 10:56
Show Gist options
  • Select an option

  • Save vanbo/d1ea05814484fd2d3b63fbf451f2e318 to your computer and use it in GitHub Desktop.

Select an option

Save vanbo/d1ea05814484fd2d3b63fbf451f2e318 to your computer and use it in GitHub Desktop.
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