Skip to content

Instantly share code, notes, and snippets.

@mahype
Created August 27, 2019 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mahype/19d3e7da078b832ed864775387f735c2 to your computer and use it in GitHub Desktop.
Save mahype/19d3e7da078b832ed864775387f735c2 to your computer and use it in GitHub Desktop.
<?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