WP HOOKS

Motywy

Hooki motywów, szablonów, menu i linków.

26 akcji224 filtrówrazem 250

Popularne w tej kategorii

Odpala się po aktywacji motywu. Dobry moment na ustawienie opcji domyślnych.

Modyfikuje części tytułu strony generowanego w <title>.

Zmienia separator w tytule dokumentu (domyślnie „-”).

Podmienia domyślny formularz wyszukiwania.

Modyfikuje tytuł strony archiwum — np. usuwa prefiks „Kategoria:”.

Dodaje atrybuty do linków w menu — np. aria-label, target czy klasy.

Zmienia permalink wpisu — np. własna struktura linków dla niestandardowego typu treści.

Pozwala podmienić plik szablonu, który ma zostać załadowany. Często używany do niestandardowych szablonów dla własnych typów treści.

Odpala się po ustaleniu, który szablon zostanie użyty. Idealne miejsce na przekierowania i blokowanie dostępu do treści.

Zmienia lub usuwa meta generator (wersja WordPressa) — ukrycie go utrudnia ataki na znane luki.

Odpala się tuż po otwarciu znacznika <body>. Motyw musi wywoływać wp_body_open() w header.php — nowsze motywy robią to automatycznie.

Dodaje kod na samym końcu dokumentu, tuż przed znacznikiem </body>. Często używany do skryptów analitycznych.

wp_headakcja

Dodaje kod do sekcji <head> witryny — meta tagi, preconnect, skrypty śledzące.

Modyfikuje elementy menu wyświetlanego przez wp_nav_menu().

Filtruje obiekty elementów menu przed renderowaniem — pozwala ukrywać pozycje dla wybranych użytkowników.

Wszystkie hooki

_get_page_linkfiltr

Filters the permalink for a non-page_on_front page.

{$adjacent}_post_linkfiltrdynamiczny

Filters the adjacent post link.

{$adjacent}_post_rel_linkfiltrdynamiczny

Filters the adjacent post relational link.

{$type}_templatefiltrdynamiczny

Filters the path of the queried template by type.

{$type}_template_hierarchyfiltrdynamiczny

Filters the list of template filenames that are searched for when retrieving a template to use.

admin_urlfiltr

Filters the admin area URL.

after_switch_themeakcja

Fires on the next WP load after the theme has been switched.

allowed_themesfiltr

Filters the array of themes allowed on the network.

attachment_linkfiltr

Filters the permalink for an attachment.

author_feed_linkfiltr

Filters the feed link for a given author.

bloginfofiltr

Filters the site information returned by get_bloginfo().

bloginfo_urlfiltr

Filters the URL returned by get_bloginfo().

category_feed_linkfiltr

Filters the category feed link.

content_urlfiltr

Filters the URL to the content directory.

current_theme_supports-{$feature}filtrdynamiczny

Filters whether the active theme supports a specific feature.

day_linkfiltr

Filters the day archive permalink.

do_faviconakcja

Fired when the template loader determines a favicon.ico request.

do_robotsakcja

Fired when the template loader determines a robots.txt request.

document_titlefiltr

Filters the document title.

document_title_partsfiltr

Filters the parts of the document title.

document_title_separatorfiltr

Filters the separator for the document title.

edit_bookmark_linkfiltr

Filters the bookmark edit link anchor tag.

edit_comment_linkfiltr

Filters the comment edit link anchor tag.

edit_post_linkfiltr

Filters the post edit link anchor tag.

edit_profile_urlfiltr

Filters the URL for a user's profile editor.

edit_tag_linkfiltr

Filters the anchor tag for the edit link for a tag (or term in another taxonomy).

edit_term_linkfiltr

Filters the anchor tag for the edit link of a term.

editor_stylesheetsfiltr

Filters the array of URLs of stylesheets applied to the editor.

exit_on_http_headfiltr

Filters whether to allow 'HEAD' requests to generate content.

feed_linkfiltr

Filters the feed type permalink.

feed_links_argsfiltr

Filters the feed links arguments.

feed_links_extra_argsfiltr

Filters the extra feed links arguments.

feed_links_extra_show_author_feedfiltr

Filters whether to display the author feed link.

feed_links_extra_show_category_feedfiltr

Filters whether to display the category feed link.

feed_links_extra_show_post_comments_feedfiltr

Filters whether to display the post comments feed link.

feed_links_extra_show_post_type_archive_feedfiltr

Filters whether to display the post type archive feed link.

feed_links_extra_show_search_feedfiltr

Filters whether to display the search results feed link.

feed_links_extra_show_tag_feedfiltr

Filters whether to display the tag feed link.

feed_links_extra_show_tax_feedfiltr

Filters whether to display the custom taxonomy feed link.

feed_links_show_comments_feedfiltr

Filters whether to display the comments feed link.

feed_links_show_posts_feedfiltr

Filters whether to display the posts feed link.

get_{$adjacent}_post_excluded_termsfiltrdynamiczny

Filters the IDs of terms excluded from adjacent post queries.

get_{$adjacent}_post_joinfiltrdynamiczny

Filters the JOIN clause in the SQL for an adjacent post query.

get_{$adjacent}_post_sortfiltrdynamiczny

Filters the ORDER BY clause in the SQL for an adjacent post query.

get_{$adjacent}_post_wherefiltrdynamiczny

Filters the WHERE clause in the SQL for an adjacent post query.

get_archives_linkfiltr

Filters the archive link content.

get_avatar_comment_typesfiltr

Filters the list of allowed comment types for retrieving avatars.

get_avatar_datafiltr

Filters the avatar data.

get_avatar_urlfiltr

Filters the avatar URL.

get_calendarfiltr

Filters the HTML calendar output.

get_calendar_argsfiltr

Filter the `get_calendar` function arguments before they are used.

get_canonical_urlfiltr

Filters the canonical URL for a post.

get_comments_pagenum_linkfiltr

Filters the comments page number link for the current request.

get_custom_logofiltr

Filters the custom logo output.

get_custom_logo_image_attributesfiltr

Filters the list of custom logo image attributes.

get_delete_post_linkfiltr

Filters the post delete link.

get_edit_bookmark_linkfiltr

Filters the bookmark edit link.

get_edit_comment_linkfiltr

Filters the comment edit link.

get_edit_post_linkfiltr

Filters the post edit link.

get_edit_tag_linkfiltr

Filters the edit link for a tag (or term in another taxonomy).

get_edit_term_linkfiltr

Filters the edit link for a term.

get_edit_user_linkfiltr

Filters the user edit link.

get_footerakcja

Fires before the footer template file is loaded.

get_headerakcja

Fires before the header template file is loaded.

get_header_imagefiltr

Filters the header image URL.

get_header_image_tagfiltr

Filters the markup of header images.

get_header_image_tag_attributesfiltr

Filters the list of header image attributes.

get_header_video_urlfiltr

Filters the header video URL.

get_pagenum_linkfiltr

Filters the page number link for the current request.

get_post_modified_timefiltr

Filters the localized time a post was last modified.

get_post_timefiltr

Filters the localized time of the post.

get_search_formfiltr

Filters the HTML output of the search form.

get_search_queryfiltr

Filters the contents of the search query variable.

get_shortlinkfiltr

Filters the shortlink for a post.

get_sidebarakcja

Fires before the sidebar template file is loaded.

get_site_icon_urlfiltr

Filters the site icon URL.

get_template_partakcja

Fires before an attempt is made to locate and load a template part.

get_template_part_{$slug}akcjadynamiczny

Fires before the specified template part file is loaded.

get_the_archive_descriptionfiltr

Filters the archive description.

get_the_archive_titlefiltr

Filters the archive title.

get_the_archive_title_prefixfiltr

Filters the archive title prefix.

get_the_datefiltr

Filters the date of the post.

get_the_generator_{$type}filtrdynamiczny

Filters the HTML for the retrieved generator type.

get_the_modified_datefiltr

Filters the date a post was last modified.

get_the_modified_timefiltr

Filters the localized time a post was last modified.

get_the_post_type_descriptionfiltr

Filters the description for a post type archive.

get_the_timefiltr

Filters the time of the post.

get_theme_starter_contentfiltr

Filters the expanded array of starter content.

getarchives_joinfiltr

Filters the SQL JOIN clause for retrieving archives.

getarchives_wherefiltr

Filters the SQL WHERE clause for retrieving archives.

has_nav_menufiltr

Filters whether a nav menu is assigned to the specified location.

header_video_settingsfiltr

Filters header video settings.

home_urlfiltr

Filters the home URL.

includes_urlfiltr

Filters the URL to the includes directory.

is_header_video_activefiltr

Filters whether the custom header video is eligible to show on the current page.

language_attributesfiltr

Filters the language attributes for display in the 'html' tag.

locale_stylesheet_urifiltr

Filters the localized stylesheet URI.

login_form_bottomfiltr

Filters content to display at the bottom of the login form.

login_form_defaultsfiltr

Filters the default login form output arguments.

login_form_middlefiltr

Filters content to display in the middle of the login form.

login_form_topfiltr

Filters content to display at the top of the login form.

login_urlfiltr

Filters the login URL.

loginoutfiltr

Filters the HTML output for the Log In/Log Out link.

logout_urlfiltr

Filters the logout URL.

lostpassword_urlfiltr

Filters the Lost Password URL.

month_linkfiltr

Filters the month archive permalink.

nav_menu_attr_titlefiltr

Filters a navigation menu item's title attribute.

nav_menu_css_classfiltr

Filters the CSS classes applied to a menu item's list item element.

nav_menu_descriptionfiltr

Filters a navigation menu item's description.

nav_menu_item_argsfiltr

Filters the arguments for a single nav menu item.

nav_menu_item_attributesfiltr

Filters the HTML attributes applied to a menu's list item element.

nav_menu_item_idfiltr

Filters the ID attribute applied to a menu item's list item element.

nav_menu_item_titlefiltr

Filters a menu item's title.

nav_menu_link_attributesfiltr

Filters the HTML attributes applied to a menu item's anchor element.

nav_menu_submenu_attributesfiltr

Filters the HTML attributes applied to a menu list element.

nav_menu_submenu_css_classfiltr

Filters the CSS class(es) applied to a menu list element.

navigation_markup_templatefiltr

Filters the navigation markup template.

network_admin_urlfiltr

Filters the network admin URL.

network_allowed_themesfiltr

Filters the array of themes allowed on the network.

network_home_urlfiltr

Filters the network home URL.

network_site_urlfiltr

Filters the network site URL.

next_comments_link_attributesfiltr

Filters the anchor tag attributes for the next comments page link.

next_posts_link_attributesfiltr

Filters the anchor tag attributes for the next posts page link.

page_linkfiltr

Filters the permalink for a page.

paginate_linksfiltr

Filters the paginated links for the given archive pages.

paginate_links_outputfiltr

Filters the HTML output of paginated links for archives.

parent_theme_file_pathfiltr

Filters the path to a file in the parent theme.

parent_theme_file_urifiltr

Filters the URL to a file in the parent theme.

plugins_urlfiltr

Filters the URL to the plugins directory.

post_comments_feed_linkfiltr

Filters the post comments feed permalink.

post_comments_feed_link_htmlfiltr

Filters the post comment feed link anchor tag.

post_linkfiltr

Filters the permalink for a post.

post_link_categoryfiltr

Filters the category that gets used in the %category% permalink token.

post_type_archive_feed_linkfiltr

Filters the post type archive feed link.

post_type_archive_linkfiltr

Filters the post type archive permalink.

post_type_archive_titlefiltr

Filters the post type archive title.

post_type_linkfiltr

Filters the permalink for a post of a custom post type.

pre_get_avatar_datafiltr

Filters whether to retrieve the avatar URL early.

pre_get_document_titlefiltr

Filters the document title before it is generated.

pre_get_search_formakcja

Fires before the search form is retrieved, at the start of get_search_form().

pre_get_shortlinkfiltr

Filters whether to preempt generating a shortlink for the given post.

pre_post_linkfiltr

Filters the permalink structure for a post before token replacement occurs.

pre_set_theme_mod_{$name}filtrdynamiczny

Filters the theme modification, or 'theme_mod', value on save.

pre_wp_nav_menufiltr

Filters whether to short-circuit the wp_nav_menu() output.

pre_wp_setup_nav_menu_itemfiltr

Filters whether to short-circuit the wp_setup_nav_menu_item() output.

preview_post_linkfiltr

Filters the URL used for a post preview.

previous_comments_link_attributesfiltr

Filters the anchor tag attributes for the previous comments page link.

previous_posts_link_attributesfiltr

Filters the anchor tag attributes for the previous posts page link.

privacy_policy_urlfiltr

Filters the URL of the privacy policy page.

registerfiltr

Filters the HTML link to the Registration or Admin page.

register_urlfiltr

Filters the user registration URL.

search_feed_linkfiltr

Filters the search feed link.

search_form_argsfiltr

Filters the array of arguments used when generating the search form.

search_form_formatfiltr

Filters the HTML format of the search form.

search_linkfiltr

Filters the search permalink.

self_admin_urlfiltr

Filters the admin URL for the current site or network depending on context.

set_url_schemefiltr

Filters the resulting URL after setting the scheme.

single_cat_titlefiltr

Filters the category archive page title.

single_post_titlefiltr

Filters the page title for a single post.

single_tag_titlefiltr

Filters the tag archive page title.

single_term_titlefiltr

Filters the custom taxonomy archive page title.

site_allowed_themesfiltr

Filters the array of themes allowed on the site.

site_icon_meta_tagsfiltr

Filters the site icon meta tags, so plugins can add their own.

site_urlfiltr

Filters the site URL.

stylesheetfiltr

Filters the name of current stylesheet.

stylesheet_directoryfiltr

Filters the stylesheet directory path for the active theme.

stylesheet_directory_urifiltr

Filters the stylesheet directory URI.

stylesheet_urifiltr

Filters the URI of the active theme stylesheet.

switch_themeakcja

Fires after the theme is switched.

tag_feed_linkfiltr

Filters the post tag feed link.

taxonomy_feed_linkfiltr

Filters the feed link for a taxonomy other than 'category' or 'post_tag'.

templatefiltr

Filters the name of the active theme.

template_directoryfiltr

Filters the active theme directory path.

template_directory_urifiltr

Filters the active theme directory URI.

template_includefiltr

Filters the path of the current template before including it.

template_redirectakcja

Fires before determining which template to load.

the_datefiltr

Filters the date of the post, for display.

the_feed_linkfiltr

Filters the feed link anchor tag.

the_generatorfiltr

Filters the output of the XHTML generator tag, for display.

the_modified_datefiltr

Filters the date a post was last modified, for display.

the_modified_timefiltr

Filters the localized time a post was last modified, for display.

the_permalinkfiltr

Filters the display of the permalink for the current post.

the_posts_pagination_argsfiltr

Filters the arguments for posts pagination links.

the_privacy_policy_linkfiltr

Filters the privacy policy link.

the_search_queryfiltr

Filters the contents of the search query variable, for display.

the_shortlinkfiltr

Filters the short link anchor tag for a post.

the_timefiltr

Filters the time of the post, for display.

the_weekdayfiltr

Filters the localized weekday of the post, for display.

the_weekday_datefiltr

Filters the localized weekday of the post, for display.

theme_{$post_type}_templatesfiltrdynamiczny

Filters list of page templates for a theme.

theme_block_pattern_filesfiltr

Filters list of block pattern files for a theme.

theme_file_pathfiltr

Filters the path to a file in the theme.

theme_file_urifiltr

Filters the URL to a file in the theme.

theme_mod_{$name}filtrdynamiczny

Filters the theme modification, or 'theme_mod', value.

theme_rootfiltr

Filters the absolute path to the themes directory.

theme_root_urifiltr

Filters the URI for themes directory.

theme_scandir_exclusionsfiltr

Filters the array of excluded directories and files while scanning theme folder.

theme_templatesfiltr

Filters list of page templates for a theme.

update_custom_css_datafiltr

Filters the `css` (`post_content`) and `preprocessed` (`post_content_filtered`) args for a `custom_css` post being updated.

user_admin_urlfiltr

Filters the user admin URL for the current user.

user_can_richeditfiltr

Filters whether the user can access the visual editor.

user_dashboard_urlfiltr

Filters the dashboard URL for a user.

user_trailingslashitfiltr

Filters the trailing-slashed string, depending on whether the site is set to use trailing slashes.

validate_current_themefiltr

Filters whether to validate the active theme.

validate_theme_requirementsfiltr

Filters the theme requirement validation response.

walker_nav_menu_start_elfiltr

Filters a menu item's starting output.

wp_add_nav_menu_itemakcja

Fires immediately after a new navigation menu item has been added.

wp_admin_cssfiltr

Filters the stylesheet link to the specified CSS file.

wp_admin_css_urifiltr

Filters the URI of a WordPress admin CSS file.

wp_after_load_templateakcja

Fires after a template file is loaded.

wp_before_include_templateakcja

Fires immediately before including the template.

wp_before_load_templateakcja

Fires before a template file is loaded.

wp_body_openakcja

Triggered after the opening body tag.

wp_cache_themes_persistentlyfiltr

Filters whether to get the cache of the registered theme directories.

wp_code_editor_settingsfiltr

Filters settings that are passed into the code editor.

wp_create_nav_menuakcja

Fires after a navigation menu is successfully created.

wp_default_editorfiltr

Filters which editor should be displayed by default.

wp_delete_nav_menuakcja

Fires after a navigation menu has been successfully deleted.

wp_enqueue_code_editorakcja

Fires when scripts and styles are enqueued for the code editor.

wp_finalized_template_enhancement_output_bufferakcja

Fires after the template enhancement output buffer has been finalized.

wp_footerakcja

Prints scripts or data before the closing body tag on the front end.

wp_generator_typefiltr

Filters the output of the XHTML generator tag.

wp_get_custom_cssfiltr

Filters the custom CSS output into the head element.

wp_get_nav_menu_itemsfiltr

Filters the navigation menu items being returned.

wp_get_nav_menu_namefiltr

Filters the navigation menu name being returned.

wp_get_nav_menu_objectfiltr

Filters the nav_menu term retrieved for wp_get_nav_menu_object().

wp_get_nav_menusfiltr

Filters the navigation menu objects being returned.

wp_headakcja

Prints scripts or data in the head tag on the front end.

wp_internal_hostsfiltr

Filters the array of URL hosts which are considered internal.

wp_metaakcja

Fires before displaying echoed content in the sidebar.

wp_nav_menufiltr

Filters the HTML content for navigation menus.

wp_nav_menu_{$menu->slug}_itemsfiltrdynamiczny

Filters the HTML list content for a specific navigation menu.

wp_nav_menu_argsfiltr

Filters the arguments used to display a navigation menu.

wp_nav_menu_container_allowedtagsfiltr

Filters the list of HTML tags that are valid for use as menu containers.

wp_nav_menu_itemsfiltr

Filters the HTML list content for navigation menus.

wp_nav_menu_objectsfiltr

Filters the sorted list of menu item objects before generating the menu's HTML.

wp_preload_resourcesfiltr

Filters domains and URLs for resource preloads.

wp_required_field_indicatorfiltr

Filters the markup for a visual indicator of required form fields.

wp_required_field_messagefiltr

Filters the message to explain required form fields.

wp_resource_hintsfiltr

Filters domains and URLs for resource hints of the given relation type.

wp_setup_nav_menu_itemfiltr

Filters a navigation menu item object.

wp_should_output_buffer_template_for_enhancementfiltr

Filters whether the template should be output-buffered for enhancement.

wp_template_enhancement_output_bufferfiltr

Filters the template enhancement output buffer prior to sending to the client.

wp_template_enhancement_output_buffer_startedakcja

Fires when the template enhancement output buffer has started.

wp_theme_files_cache_ttlfiltr

Filters the cache expiration time for theme files.

wp_titlefiltr

Filters the text of the page title.

wp_title_partsfiltr

Filters the parts of the page title.

wp_update_nav_menuakcja

Fires after a navigation menu has been successfully updated.

wp_update_nav_menu_itemakcja

Fires after a navigation menu item has been updated.

year_linkfiltr

Filters the year archive permalink.