Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Prevent LearnDash certificates from being edited.
<?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
You can’t perform that action at this time.