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($) { | |
let carouselSelector = '.my-carousel'; /* Change to your carousel class */ | |
let statusSelector = '.oxy-carousel-builder_status'; /* Change to your text component class */ | |
let $carousel = $(carouselSelector).find($(carouselSelector).children().data('carousel')); | |
var flkty = $carousel.data('flickity'); | |
if (flkty) { | |
function updateStatus() { |
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
// Prevent redirect if login form failed | |
add_action( 'wp_login_failed', 'my_front_end_login_fail' ); | |
function my_front_end_login_fail( $username ) { | |
$referrer = $_SERVER['HTTP_REFERER']; | |
if ( !empty($referrer) && !strstr($referrer,'wp-login') && !strstr($referrer,'wp-admin') ) { | |
wp_redirect( $referrer . '?login=failed' ); | |
exit; | |
} | |
} |
OlderNewer