Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/28/2018 01:32:52 AM (8 years ago)
Author:
tw2113
Message:

add/touchup documentation to a lot of Nouveau actions and filters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/activity/ajax.php

    r11903 r12008  
    439439        wp_send_json_success( array_map( 'bp_nouveau_prepare_group_for_js', $groups['groups'] ) );
    440440    } else {
     441
     442        /**
     443         * Filters the response for custom activity objects.
     444         *
     445         * @since 3.0.0
     446         *
     447         * @param array $response Array of custom response objects to send to AJAX return.
     448         * @param array $value    Activity object type from $_POST global.
     449         */
    441450        $response = apply_filters( 'bp_nouveau_get_activity_custom_objects', $response, $_POST['type'] );
    442451    }
     
    544553        'message'      => sprintf( __( 'Update posted <a href="%s" class="just-posted">View activity</a>', 'buddypress' ), esc_url( bp_activity_get_permalink( $activity_id ) ) ),
    545554        'activity'     => $acivity,
     555
     556        /**
     557         * Filters whether or not an AJAX post update is private.
     558         *
     559         * @since 3.0.0
     560         *
     561         * @param string/bool $is_private Privacy status for the update.
     562         */
    546563        'is_private'   => apply_filters( 'bp_nouveau_ajax_post_update_is_private', $is_private ),
    547564        'is_directory' => bp_is_activity_directory(),
Note: See TracChangeset for help on using the changeset viewer.