Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
/**
* Adding the protector to Torro Forms.
*
* @param Module $protectors Action manager instance.
*/
function add_protector( $protector_manager ) {
require __DIR__ . '/self-written-protector.php';
$protector_manager->register( 'selfwrittenprotector', 'Self_Written_Protector' );
}
add_action( 'torro_register_protectors', 'add_protector' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment