$next_post_link_url = get_permalink( get_adjacent_post(false,'',false)->ID );
$prev_post_link_url = get_permalink( get_adjacent_post(false,'',true)->ID );
<a class="videos__controls_btn" href="<?php echo next_post_link_url; ?>"></a>
const sendData = async (url, data) => {
const response = await fetch(url, {
method: 'POST',
body: data,
cache: 'no-cache',
});
if (!response.ok) {console.log('123123123')}
return await response.formData();
};
const forma = document.querySelector('.form');
forma.addEventListener('submit' , function(e){
e.preventDefault()
const formData = new FormData(forma)
formData.set('action', 'send_audio');
sendData('https://shellsays.art/wp-admin/admin-ajax.php' , formData).then(()=>{forma.reset();})
})
add_action('wp_logout','auto_redirect_after_logout');
function auto_redirect_after_logout(){
wp_redirect( home_url() );
exit();
}