This file contains hidden or 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
<!-- Mailchimp for WordPress - https://www.mc4wp.com/ --> | |
<input type="hidden" name="_mc4wp_subscribe_wp-registration-form" value="0"> | |
<p class=" mc4wp-checkbox mc4wp-checkbox-wp-registration-form"> | |
<label> | |
<input type="checkbox" name="_mc4wp_subscribe_wp-registration-form" value="1"> | |
<span>Yes, add me to your mailing list</span> | |
</label> | |
</p> | |
<!-- / Mailchimp for WordPress --> | |
<style> |
This file contains hidden or 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 | |
// User Emails | |
add_filter("lrm/mails/registration/body", function($mail_body, $user_login, $userdata, $user) { | |
// Let's replace the {{USER_PHONE}} tag with user meta value | |
$mail_body = str_replace( '{{USER_PHONE}}', get_user_meta($user->ID, 'phone', true), $mail_body ); | |
return $mail_body; | |
}, 10, 4); |
This file contains hidden or 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 | |
add_action('pilotpress_post_user_login', function () { | |
$user_signon = wp_get_current_user(); | |
if ( !$user_signon ) { | |
return; | |
} | |
do_action('lrm/login_successful', $user_signon); | |
$message = lrm_setting('general/registration/reload_after_login', true) ? |
This file contains hidden or 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 | |
// How to add html: https://monosnap.com/file/2MVkjClgYE3W3U9cgPEjy4VXXCzXf2 | |
// COPY AFTER | |
$lrm_fields = [ 'billing_city'=>'City', 'billing_state'=>'State', 'billing_postcode' => 'Postcode', 'ETC'=>'ETC' ]; | |
add_filter( 'registration_errors',function ( $errors, $sanitized_user_login, $user_email ) use($lrm_fields) { | |
foreach( $lrm_fields as $lrm_field=>$lrm_field_label ) { | |
if ( empty( $_POST[$lrm_field ] ) ) { |
This file contains hidden or 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
jQuery(document).on("lrm/before_display/login", function() { | |
jQuery(".mfp-wrap").attr("tabindex", false); | |
}); | |
jQuery(document).on("lrm/before_display/registration", function() { | |
jQuery(".mfp-wrap").attr("tabindex", false); | |
}); | |
This file contains hidden or 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 | |
// Copy after | |
add_filter("fv/competitor/get_votes", function($result, $competitor, $contest_voting_type, $contest) { | |
if ( $competitor->votes_count > 20 && ! current_user_can("manage_options") ) { | |
return "20+"; | |
} | |
return $result; | |
}, 10, 4); |
This file contains hidden or 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
jQuery( document ).ready(function() { | |
var $form = jQuery( ".lrm-form[data-action='login']" ); | |
$form.find("[name='username']").after('<span class="lrm-desc">TEXT</span>'); | |
$form.find("[name='password']").after('<span class="lrm-desc">TEXT</span>'); | |
}); |