Skip to:
Content
Pages
Categories
Search
Top
Bottom

Help with getting basic plugin to work


  • 3djake
    Participant

    @3djake

    Hi there

    I want to add more fields to the users profile and also display them under the users role in posts.

    I just want it to fetch the information from the users meta data.

    How ever the following does not appear to work

    `
    <?php

    function add_author_details( $user_details ){

    /* Add author details */
    $user_details['soldier'] = __('Soldier Name');

    return $user_details;
    }
    add_filter('user_adddetails', 'add_author_details');

    function add_author_details_author() {

    echo get_user_meta(bbp_get_reply_author_id(), 'soldier', true);

    }
    add_action( 'bbp_theme_after_reply_author_details', 'add_author_details_author' ); ?>
    `

    Any help would be appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar