Created
February 26, 2020 09:44
-
-
Save mustardBees/5ae4b8cc32a96b1d30f1a72fabb97a49 to your computer and use it in GitHub Desktop.
Prevent LearnDash certificates from being edited.
This file contains 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
<?php | |
/** | |
* Prevent LearnDash certificates from being edited. | |
* | |
* @param $pdf | |
*/ | |
function iweb_learndash_certification_created( $pdf ) { | |
$pdf->SetProtection( array( 'modify' ), '', '#:EcjN7P(sGjF*6L', 0, null ); | |
} | |
add_action( 'learndash_certification_created', 'iweb_learndash_certification_created' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment