Skip to content

Instantly share code, notes, and snippets.

@bologer
Last active January 12, 2019 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bologer/1bcb2465a0f6811670fb47af800ab0b1 to your computer and use it in GitHub Desktop.
Save bologer/1bcb2465a0f6811670fb47af800ab0b1 to your computer and use it in GitHub Desktop.
Exclude anycomment core js asset in j news
<?php
// Только без "<?php" выше
add_filter( 'minit-exclude-js', function($excludes) {
$excludes[] = 'anycomment-js-bundle';
return $excludes;
});
@SadoYasashii
Copy link

SadoYasashii commented Jan 12, 2019

Очертив вам линиями. Этот код добавить в тот же файл functions.php, если вы захотите использовать тему JNews и изменить путь на вкладку профиля или на любую другую

add_filter('jnews_dropdown_link', function($dropdown){
    unset($dropdown['account']);
    $dropdown['account'] = array(
        'text' => jnews_return_translation('My Account', 'jnews', 'my_account'),
        'url'  => home_url( 'Указываем путь полной ссылкой или краткой на страницу /account' )
    );
    return $dropdown;
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment