Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to remoVe a section from a function?


  • imjscn
    Participant

    @imjscn

    I want to move the activity meta to below the activity content. Just like it’s done in this BP site.
    The activity meta is inserted after action by adding ‘bp_insert_activity_meta’ at the end of the function.

    How can I create a custom function to remove this line– ‘if ( !empty( $action ) ) $action = bp_insert_activity_meta( $action );’ ?

    The following code is the original bp function:
    ` function bp_get_activity_action() {
    global $activities_template;
    $action = $activities_template->activity->action;
    $action = apply_filters( ‘bp_get_activity_action_pre_meta’, $action, &$activities_template->activity );

    if ( !empty( $action ) )
    $action = bp_insert_activity_meta( $action );

    return apply_filters( ‘bp_get_activity_action’, $action, &$activities_template->activity );
    }
    `

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to remoVe a section from a function?’ is closed to new replies.
Skip to toolbar