Created
August 27, 2019 13:31
-
-
Save mahype/19d3e7da078b832ed864775387f735c2 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* 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