first commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
jQuery(function ($) {
|
||||
'use strict';
|
||||
|
||||
$('.wpml_iframe').on('load', function () {
|
||||
var userStatus = 'wpml_is_user_signed_out';
|
||||
|
||||
if (wpml_sso.is_user_logged_in) {
|
||||
userStatus = 'wpml_is_user_signed_in';
|
||||
}
|
||||
|
||||
this.contentWindow.postMessage(JSON.stringify({userStatus: userStatus, userId: wpml_sso.current_user_id}), "*");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user