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
    
  
  
    
  | /* PUT YOUR JS HERE */ | |
| jQuery( document ).ready(function($) { | |
| var phone_html = $(".fieldset--phone").get(0).outerHTML; | |
| $(".lrm-signup-section .fieldset--phone").remove() | |
| $(".lrm-signup-section .fieldset--email").before(phone_html); | 
  
    
      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
    
  
  
    
  | if ( ! jQuery("body").hasClass("home") ) { | |
| jQuery(".fv-leaders img").on("click", function(e) { | |
| e.preventDefault(); | |
| window.location.href = "YOUR URL"; | |
| }); | |
| } | 
  
    
      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
    
  
  
    
  | <div class="fieldset fieldset--phone"> | |
| <label class="image-replace lrm-email lrm-ficon-phone" title="phone*"></label> | |
| <input name="phone" class="full-width has-padding has-border" type="text" placeholder="lrm-ficon-phone*" required=""> | |
| <span class="lrm-error-message"></span> | |
| </div> | |
| <div class="fieldset fieldset--location"> | |
| <label class="image-replace lrm-email lrm-ficon-location" title=""></label> | |
| <input name="location" class="full-width has-padding has-border" type="text" placeholder=".lrm-ficon-location" required=""> | |
| <span class="lrm-error-message"></span> | 
  
    
      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 to your theme functions.php | |
| add_filter('lrm/redirect_url', function($redirect_to, $action) { | |
| if ( 'login' !== $action ) { | |
| return $redirect_to; | |
| } | |
| // Do Something with a $redirect_to, like | |
| $url = parse_url( $_SERVER["HTTP_REFERER"] ); | 
  
    
      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
    
  
  
    
  | // IF the user is registered but not logged in (have to enter pass or verify account) | |
| jQuery(document).on('lrm/ajax_response', function(event, response, $form, action) { | |
| if ( "registration" === action && "register_new_user" === response.data.from && response.data.message.indexOf("Your account is still pending approval") > 0 ) { | |
| location.href = "URL"; | |
| } | |
| }); | 
  
    
      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
    
  
  
    
  | add_filter( 'lrm/um/default_register_form_ID', function($default_register_form_ID) { | |
| if (is_singular('teacher') ) { | |
| return 5; 'YOUR CUSTOM FORM ID' | |
| } | |
| return $default_register_form_ID; | |
| }); | 
  
    
      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_shortcode('fv_prize_pool', function($atts){ | |
| global $contest_id; | |
| if ( empty($contest_id) ) { | |
| if ( !empty($atts['contest_id'])) { | |
| $contest_id = absint($atts['contest_id']); | |
| } else { | 
  
    
      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
    
  
  
    
  | add_filter('fv/admin/create_contest/default_options', function($atts) { | |
| $atts['sorting'] = 'pseudo-random'; | |
| return $atts; | |
| }); | 
  
    
      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/close_modal", function(el, event, event_type){ | |
| if ( LRM_Pro.has_auto_trigger ) { | |
| window.location.href = "/"; | |
| } | |
| }); | 
  
    
      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 this to your child theme functions.php | |
| add_action( 'template_redirect', 'redirect_to_specific_page' ); | |
| function redirect_to_specific_page() { | |
| if ( ! is_page('login') && ! is_user_logged_in() ) { |