Salve
Sto cercando di capire come funziona il plugin Login With Ajax.
Sono alla fine della spiegazione però non riesco a capire come devo sostituire il link di cui parla nell'articolo.

Metto qui quello che dice e il codice che ho io.
Ora dobbiamo fare una modifica lato codice, precisamente nella cartella del plugin login-with-ajax/widget/default/widget_in.php, andando a cercare e modificare “/wp-admin/profile.php” con “URL-nome-pagina-profilo-utente” questo per reindirizzare gli utenti alla pagina nel front end di gestione del profilo.

Questo è il codice, a me da errore se sostituisco:

Codice PHP:
<?php 
/*
 * This is the page users will see logged in. 
 * You can edit this, but for upgrade safety you should copy and modify this file into your template folder.
 * The location from within your template folder is plugins/login-with-ajax/ (create these directories if they don't exist)
*/
?>
<div class="lwa">
    <?php 
        
global $current_user;
        
get_currentuserinfo();
    
?>
    <span class="lwa-title-sub" style="display:none"><?php echo __'Hi''login-with-ajax' ) . " " $current_user->display_name  ?></span>
    <table>
        <tr>
            <td class="avatar lwa-avatar">
                <?php echo get_avatar$current_user->ID$size '50' );  ?>
            </td>
            <td class="lwa-info">
                <?php
                    
//Admin URL
                    
if ( $lwa_data['profile_link'] == '1' ) {
                        if( 
function_exists('bp_loggedin_user_link') ){
                            
?>
                            <a href="<?php bp_loggedin_user_link(); ?>"><?php esc_html_e('Profile','login-with-ajax'?></a><br/>
                            <?php    
                        
}else{
                            
?>
                            <a href="<?php echo trailingslashit(get_admin_url()); ?>profile.php"><?php esc_html_e('Profile','login-with-ajax'?></a><br/>
                            <?php    
                        
}
                    }
                    
//Logout URL
                    
?>
                    <a id="wp-logout" href="<?php echo wp_logout_url() ?>"><?php esc_html_e'Log Out' ,'login-with-ajax'?></a><br />
                    <?php
                    
//Blog Admin
                    
if( current_user_can('list_users') ) {
                        
?>
                        <a href="<?php echo get_admin_url(); ?>"><?php esc_html_e("blog admin"'login-with-ajax'); ?></a>
                        <?php
                    
}
                
?>
            </td>
        </tr>
    </table>
</div>