<span class="rcl-tab-button" data-tab="vuyti_iz_lk" id="tab-button-vuyti_iz_lk">
<a href="http://Домен/stranitsa-polzovatelya/?user=1&tab=vuyti_iz_lk" data-post="eyJjYWxsYmFjayI6InJjbF9hamF4X3RhYiIsInRhYl9pZCI6InZ1eXRpX2l6X2xrIiwidXNlcl9MSyI6IjEifQ==" class="recall-button block_button active">
<i class="fa fa-sign-out vuyti_iz_lk"></i>
<span>Выход</span>
<div class="rcl-tab-button" data-tab="vuyti_iz_lk" id="tab-button-vuyti_iz_lk">
<a href="' . esc_url(wp_logout_url('/')) . '" data-post="eyJjYWxsYmFjayI6InJjbF9hamF4X3RhYiIsInRhYl9pZCI6InZ1eXRpX2l6X2xrIiwidXNlcl9MSyI6IjEifQ==" class="recall-button block_button active">
<i class="fa fa-sign-out vuyti_iz_lk"></i>
<span>Выход</div>
<script src="/wp-content/themes/goldauto/got_top-master/js/jquery-2.2.1.min.js"></script>
<script> var logoutUrl = '<?php esc_url(wp_logout_url("/")) ?>'; </script>
<script type="text/javascript">
(function($) { $(function() {
var span = $('#tab-button-vuyti_iz_lk');
var link = span.next();
var div = '<div class="' + span.attr('class') + '" data-tab="' + span.data('tab') + '" id="' + span.attr('id') + '">';
span.remove();
link
.href(logoutUrl)
.before(div);
}); })(jQuery);
</script">
<script> var logoutUrl = '<?php esc_url(wp_logout_url("/")) ?>'; </script>
(function($) { $(function() {
var span = $('#tab-button-vuyti_iz_lk');
var link = span.next();
var div = '<div class="' + span.attr('class') + '" data-tab="' + span.data('tab') + '" id="' + span.attr('id') + '">';
span.remove();
link
.attr('href', logoutUrl)
.before(div);
}); })(jQuery);