• Resolved lspoe2

    (@lspoe2)


    Hi,

    I found this snippet In your forums:

    add_filter( 'fep_filter_user_name', function( $name, $id ){
    	if ( $name && get_current_user_id() ) {
    		$name = '<a href="xyz.com/" target="_blank">' . $name . '</a>';
    	}
    	return $name;
    }, 10, 2);

    I’m trying to link the users name to their post. On my site I only allow users to upload one post, hence why I think it would suit me.

    I’m wondering how I would be able to do that. Could you help me out with this or offer any suggestions?

    Thanks

    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘fep_filter_user_name’ is closed to new replies.