July 26, 2018 Updated. Result of reduce was added.
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
<!-- contactform.php --> | |
<div class="cf" id="cf"> | |
<form action="javascript:void(0);"> | |
<div><input type="text" name="name" placeholder="Name"/><span class="error"></span></div> | |
<div><input type="text" name="email" placeholder="Email"/><span class="error"></span></div> | |
<div><textarea name="message" placeholder="Message"></textarea><span class="error"></span></div> | |
<div><button type="submit">Submit</button> <span class="loader"></span></div> | |
</form> | |
</div> |
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
/** | |
* Register Custom myCRED Hook | |
* @since 1.0 | |
* @version 1.0 | |
*/ | |
add_filter( 'mycred_setup_hooks', 'Learndash_myCRED_Hook' ); | |
function Learndash_myCRED_Hook( $installed ) { | |
$installed['hook_learndash'] = array( | |
'title' => __( 'LearnDash', 'mycred' ), |