Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/27/2017 05:04:31 PM (7 years ago)
Author:
johnjamesjacoby
Message:

Tools: Add //Filter & return note for future discovery of missing filter documentation.

Also adjust some type-casting on filtered results.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/search/template.php

    r6414 r6438  
    160160    }
    161161
    162     // Return object
     162    // Filter & return
    163163    return apply_filters( 'bbp_has_search_results', $bbp->search_query->have_posts(), $bbp->search_query );
    164164}
     
    237237        }
    238238
     239        // Filter & return
    239240        return apply_filters( 'bbp_get_search_title', $title, $search_terms );
    240241    }
     
    277278        }
    278279
     280        // Filter & return
    279281        return apply_filters( 'bbp_get_search_url', $url );
    280282    }
     
    329331        }
    330332
     333        // Filter & return
    331334        return apply_filters( 'bbp_get_search_results_url', $url );
    332335    }
     
    371374        $search_terms = ! empty( $search_terms ) ? urldecode( trim( $search_terms ) ) : false;
    372375
     376        // Filter & return
    373377        return apply_filters( 'bbp_get_search_terms', $search_terms, $passed_terms );
    374378    }
     
    423427        }
    424428
    425         // Filter and return
     429        // Filter & return
    426430        return apply_filters( 'bbp_get_search_pagination_count', esc_html( $retstr ) );
    427431    }
     
    454458        }
    455459
     460        // Filter & return
    456461        return apply_filters( 'bbp_get_search_pagination_links', $bbp->search_query->pagination_links );
    457462    }
Note: See TracChangeset for help on using the changeset viewer.