Skip to:
Content

BuddyPress.org

Changeset 9731


Ignore:
Timestamp:
04/10/2015 12:52:38 AM (4 years ago)
Author:
tw2113
Message:

Adds hooks documentation for class-bp-suggestions.php

Props melhop.
See #5940.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-suggestions.php

    r9486 r9731  
    9393        $this->args['limit'] = absint( $this->args['limit'] );
    9494        $this->args['term']  = trim( sanitize_text_field( $this->args['term'] ) );
     95
     96        /**
     97         * Filters the arguments to be validated for the BP_Suggestions query.
     98         *
     99         * @since BuddyPress (2.1.0)
     100         *
     101         * @param BP_Suggestions $value Arguments to be validated.
     102         * @param BP_Suggestions $this  Current BP_Suggestions instance.
     103         */
    95104        $this->args          = apply_filters( 'bp_suggestions_args', $this->args, $this );
    96 
    97105
    98106        // Check for invalid or missing mandatory parameters.
     
    106114        }
    107115
     116        /**
     117         * Filters the status of validation for the BP_Suggestions query.
     118         *
     119         * @since BuddyPress (2.1.0)
     120         *
     121         * @param bool           $value Whether or not the values are valid.
     122         * @param BP_Suggestions $this  Current BP_Suggestions instance.
     123         */
    108124        return apply_filters( 'bp_suggestions_validate_args', true, $this );
    109125    }
Note: See TracChangeset for help on using the changeset viewer.