Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter a298e

    (@honeybb)

    In my previous post, some parts concerning html link codes were automatically chenged. Please see html source code.

    Plugin Author Chad Butler

    (@cbutlerjr)

    For starters, I don’t think there is a wpmem_logout_link filter hook. I’m not sure where you got that, but a full list of filter and action hooks is available here.

    To add what you are looking to add here you would need to filter the html string for the sidebar status, which can be filtered with wpmem_sidebar_status.

    Thread Starter a298e

    (@honeybb)

    Thank you for your quick reply.

    It’s thanks to your kind advice, I could customize around “logout” link.

    I added below code to my “function.php”.
    —————————————————————
    add_filter( ‘wpmem_sidebar_status’, ‘my_sidebar_status’ );

    function my_sidebar_status( $string )
    {
    return str_replace(‘click here to logout’, ‘click here to logout | Biographical Info’, $string);
    }
    —————————————————————

    It also can to change letters like below which are in “wp-members-xx_XX.po” file in “lang” folder by editing “PoEdit”.
    —————————————————————
    Souce Text:click here to logout

    Translation:click here to logout | Biographical Info
    —————————————————————

    At first, I was seeing and thinking “uses apply_filters Calls ‘wpmem_logout_link’ filter to change the logout link” on “wp-members-dialogs.php” file, line 137(ver.2.8.8), but
    it was my misconception.

    Best Regard,

    Thread Starter a298e

    (@honeybb)

    I’ve forget to mark this topic as resolved.
    Sorry for being separeted post.

    Thanks,

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘customize "wpmem_logout_link"’ is closed to new replies.