WP HOOKS

Zapytania

Hooki klasy WP_Query, pętli i zapytań do bazy danych.

13 akcji54 filtrówrazem 67

Popularne w tej kategorii

Uruchamiany po utworzeniu obiektu zapytania i przetworzeniu zmiennych zapytania, ale przed wykonaniem zapytania. Alternatywa dla pre_get_posts.

Modyfikuje obiekt WP_Query przed wykonaniem zapytania. Pozwala zmieniać listę wpisów na stronie głównej, w archiwach i wynikach wyszukiwania.

Rejestruje własne zmienne zapytania (query vars) dostępne w URL.

Modyfikuje nagłówki HTTP wysyłane przez WordPress.

Wszystkie hooki

comment_feed_groupbyfiltrreferencja

Filters the GROUP BY clause of the comments feed query before sending.

comment_feed_joinfiltrreferencja

Filters the JOIN clause of the comments feed query before sending.

comment_feed_limitsfiltrreferencja

Filters the LIMIT clause of the comments feed query before sending.

comment_feed_orderbyfiltrreferencja

Filters the ORDER BY clause of the comments feed query before sending.

comment_feed_wherefiltrreferencja

Filters the WHERE clause of the comments feed query before sending.

comment_loop_startakcja

Fires once the comment loop is started.

content_paginationfiltr

Filters the "pages" derived from splitting the post content.

date_query_valid_columnsfiltr

Filters the list of valid date query columns.

do_parse_requestfiltr

Filters whether to parse the request.

do_redirect_guess_404_permalinkfiltr

Filters whether to attempt to guess a redirect URL for a 404 request.

found_postsfiltrreferencja

Filters the number of found posts for the query.

found_posts_queryfiltrreferencja

Filters the query to run for retrieving the found posts.

get_date_sqlfiltr

Filters the date query WHERE clause.

get_meta_sqlfiltrreferencja

Filters the meta query's generated SQL.

loop_endakcjareferencja

Fires once the loop has ended.

loop_no_resultsakcja

Fires if no results are found in a post query.

loop_startakcjareferencja

Fires once the loop is started.

meta_query_find_compatible_table_aliasfiltr

Filters the table alias identified as compatible with the current clause.

old_slug_redirect_post_idfiltr

Filters the old slug redirect post ID.

old_slug_redirect_urlfiltr

Filters the old slug redirect URL.

parse_queryakcjareferencja

Fires after the main query vars have been parsed.

parse_requestakcjareferencja

Fires once all query variables for the current request have been parsed.

parse_tax_queryakcja

Fires after taxonomy-related query vars have been parsed.

post_limitsfiltrreferencja

Filters the LIMIT clause of the query.

post_limits_requestfiltrreferencja

Filters the LIMIT clause of the query.

post_search_columnsfiltr

Filters the columns to search in a WP_Query search.

posts_clausesfiltrreferencja

Filters all query clauses at once, for convenience.

posts_clauses_requestfiltrreferencja

Filters all query clauses at once, for convenience.

posts_distinctfiltrreferencja

Filters the DISTINCT clause of the query.

posts_distinct_requestfiltrreferencja

Filters the DISTINCT clause of the query.

posts_fieldsfiltrreferencja

Filters the SELECT clause of the query.

posts_fields_requestfiltrreferencja

Filters the SELECT clause of the query.

posts_groupbyfiltrreferencja

Filters the GROUP BY clause of the query.

posts_groupby_requestfiltrreferencja

Filters the GROUP BY clause of the query.

posts_joinfiltrreferencja

Filters the JOIN clause of the query.

posts_join_pagedfiltrreferencja

Filters the JOIN clause of the query.

posts_join_requestfiltrreferencja

Filters the JOIN clause of the query.

posts_orderbyfiltrreferencja

Filters the ORDER BY clause of the query.

posts_orderby_requestfiltrreferencja

Filters the ORDER BY clause of the query.

posts_pre_queryfiltrreferencja

Filters the posts array before the query takes place.

posts_requestfiltrreferencja

Filters the completed SQL query before sending.

posts_request_idsfiltr

Filters the Post IDs SQL request before sending.

posts_resultsfiltrreferencja

Filters the raw post results array, prior to status checks.

posts_searchfiltrreferencja

Filters the search SQL that is used in the WHERE clause of WP_Query.

posts_search_orderbyfiltr

Filters the ORDER BY used when ordering search results.

posts_selectionakcja

Fires to announce the query's current selection parameters.

posts_wherefiltrreferencja

Filters the WHERE clause of the query.

posts_where_pagedfiltrreferencja

Filters the WHERE clause of the query.

posts_where_requestfiltrreferencja

Filters the WHERE clause of the query.

pre_get_postsakcjareferencja

Fires after the query variable object is created, but before the actual query is run.

pre_handle_404filtr

Filters whether to short-circuit default header status handling.

pre_redirect_guess_404_permalinkfiltr

Short-circuits the redirect URL guessing for 404 requests.

query_varsfiltr

Filters the query variables allowed before processing.

redirect_canonicalfiltr

Filters the canonical redirect URL.

requestfiltr

Filters the array of parsed query variables.

send_headersakcjareferencja

Fires once the requested HTTP headers for caching, content type, etc. have been sent.

set_404akcjareferencja

Fires after a 404 is triggered.

split_the_queryfiltr

Filters whether to split the query.

strict_redirect_guess_404_permalinkfiltr

Filters whether to perform a strict guess for a 404 redirect.

the_postakcjareferencja

Fires once the post data has been set up.

the_postsfiltrreferencja

Filters the array of retrieved posts after they've been fetched and internally processed.

the_previewfiltrreferencja

Filters the single post for preview mode.

wpakcjareferencja

Fires once the WordPress environment has been set up.

wp_allow_query_attachment_by_filenamefiltr

Filters whether an attachment query should include filenames or not.

wp_headersfiltr

Filters the HTTP headers before they're sent to the browser.

wp_query_search_exclusion_prefixfiltr

Filters the prefix that indicates that a search term should be excluded from results.

wp_search_stopwordsfiltr

Filters stopwords used when parsing search terms.