From name in admin


Home Forums Front End PM PRO From name in admin

This topic is: Resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #15201
    fadecha
    Participant

    Hi, in the admin, i have the name of the message’s author in view “all messages”.
    How can I change the name ? because I want to have the last_name or the ID, and not only display_name (it’s first name for me, because I use it like this in all the website).
    Thanks for your return.

    #15204
    shamim
    Keymaster

    add following code in your theme’s (child theme’s if any) functions.php

    add_filter( 'fep_filter_show_which_name', function( $which ){
        return 'first_last_name';
    });
    

    It will show first name and last name

    #15541
    fadecha
    Participant

    It doesn’t work, I have Version 7.2, may be it’s too old ?
    But i can’t cupdate my version, because I did some change in your code.
    It’only for the admin that I want to change the name, not for the users.

    #15546
    shamim
    Keymaster

    This filter is added in version 7.4
    It is always recommended not to change any plugin code. there are lots of hooks in this plugin and you can change almost anything without touching plugin code.

    You want to change only your name in everywhere? or all authors name in “all messages”?

    #15548
    fadecha
    Participant

    Only for the admin’s view for all message. But I did something else : I add a column to your view with last_name only, some it did the trick. Thanks for your answer

Viewing 5 posts - 1 through 5 (of 5 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.