WP HOOKS

Bezpieczeństwo

Hooki uwierzytelniania, sanitizacji i uprawnień.

20 akcji95 filtrówrazem 115

Popularne w tej kategorii

Zmienia czas ważności ciasteczka sesji logowania.

Filtruje wynik uwierzytelniania — pozwala dodać własne kroki walidacji logowania lub je całkowicie zablokować.

Zmienia długość automatycznie generowanej zajawki (w słowach).

Zmienia tekst „Czytaj dalej” dołączany do automatycznej zajawki.

Podmienia lub modyfikuje awatar użytkownika.

Filtruje nazwę pliku podczas uploadu — przydatne do usuwania polskich znaków diakrytycznych.

Rozszerza listę dozwolonych tagów i atrybutów HTML w treści dla konkretnego kontekstu.

Uruchamiany przy nieudanej próbie logowania — przydatny do logowania i blokowania prób siłowych.

Odpala się po wylogowaniu użytkownika.

wp_mailfiltr

Filtruje parametry wiadomości przed wysłaniem — tablicę z kluczami to, subject, message, headers i attachments.

Zmienia typ zawartości e-maili — np. text/html, aby wysyłać wiadomości w formacie HTML.

Zmienia adres nadawcy (From) w e-mailach wysyłanych przez wp_mail().

Zmienia nazwę nadawcy w e-mailach wysyłanych przez wp_mail().

Filtruje generowaną zajawkę — np. aby dołączyć informację o czasie czytania.

Wszystkie hooki

allowed_redirect_hostsfiltr

Filters the list of allowed hosts to redirect to.

attach_session_informationfiltr

Filters the information attached to the newly created session.

attribute_escapefiltr

Filters a string cleaned and escaped for output in an HTML attribute.

auth_cookiefiltr

Filters the authentication cookie.

auth_cookie_bad_hashakcja

Fires if a bad authentication cookie hash is encountered.

auth_cookie_bad_session_tokenakcja

Fires if a bad session token is encountered.

auth_cookie_bad_usernameakcja

Fires if a bad username is entered in the user authentication process.

auth_cookie_expirationfiltr

Filters the duration of the authentication cookie expiration period.

auth_cookie_expiredakcja

Fires once an authentication cookie has expired.

auth_cookie_malformedakcja

Fires if an authentication cookie is malformed.

auth_cookie_validakcja

Fires once an authentication cookie has been validated.

auth_redirectakcja

Fires before the authentication redirect.

auth_redirect_schemefiltr

Filters the authentication redirect scheme.

authenticatefiltr

Filters whether a set of user login credentials are valid.

check_admin_refererakcja

Fires once the admin request has been validated or not.

check_ajax_refererakcja

Fires once the Ajax request has been validated or not.

check_passwordfiltr

Filters whether the plaintext password matches the hashed password.

clean_urlfiltr

Filters a string cleaned and escaped for output as a URL.

clear_auth_cookieakcja

Fires just before the authentication cookies are cleared.

comment_moderation_headersfiltr

Filters the comment moderation email headers.

comment_moderation_recipientsfiltr

Filters the list of recipients for comment moderation emails.

comment_moderation_subjectfiltr

Filters the comment moderation email subject.

comment_moderation_textfiltr

Filters the comment moderation email text.

comment_notification_headersfiltr

Filters the comment notification email headers.

comment_notification_notify_authorfiltr

Filters whether to notify comment authors of their comments on their own posts.

comment_notification_recipientsfiltr

Filters the list of email addresses to receive a comment notification.

comment_notification_subjectfiltr

Filters the comment notification email subject.

comment_notification_textfiltr

Filters the comment notification email text.

emoji_extfiltr

Filters the extension of the emoji png files.

emoji_svg_extfiltr

Filters the extension of the emoji SVG files.

emoji_svg_urlfiltr

Filters the URL where emoji SVG images are hosted.

emoji_urlfiltr

Filters the URL where emoji png images are hosted.

esc_htmlfiltr

Filters a string cleaned and escaped for output in HTML.

esc_textareafiltr

Filters a string cleaned and escaped for output in a textarea element.

esc_xmlfiltr

Filters a string cleaned and escaped for output in XML.

excerpt_lengthfiltr

Filters the maximum number of words in a post excerpt.

excerpt_morefiltr

Filters the string in the "more" link displayed after a trimmed excerpt.

format_for_editorfiltr

Filters the text after it is formatted for the editor.

format_to_editfiltr

Filters the text to be formatted for editing.

get_avatarfiltr

Filters the HTML for a user's avatar.

human_time_difffiltr

Filters the human-readable difference between two timestamps.

is_emailfiltr

Filters whether an email address is valid.

js_escapefiltr

Filters a string cleaned and escaped for output in JavaScript.

make_clickable_relfiltr

Filters the rel value that is added to URL matches converted to links.

no_texturize_shortcodesfiltr

Filters the list of shortcodes not to texturize.

no_texturize_tagsfiltr

Filters the list of HTML elements not to texturize.

nonce_lifefiltr

Filters the lifespan of nonces in seconds.

nonce_user_logged_outfiltr

Filters whether the user who generated the nonce is logged out.

notify_moderatorfiltr

Filters whether to send the site moderator email notifications, overriding the site setting.

password_needs_rehashfiltr

Filters whether the password hash needs to be rehashed.

phpmailer_initakcjareferencja

Fires after PHPMailer is initialized.

pre_ent2ncrfiltr

Filters text before named entities are converted into numbered entities.

pre_get_avatarfiltr

Allows the HTML for a user's avatar to be returned early.

pre_ksesfiltr

Filters content to be run through KSES.

pre_wp_mailfiltr

Filters whether to preempt sending an email.

random_passwordfiltr

Filters the randomly-generated password.

run_wptexturizefiltr

Filters whether to skip running wptexturize().

safe_style_cssfiltr

Filters the list of allowed CSS attributes.

safecss_filter_attr_allow_cssfiltr

Filters the check for unsafe CSS in `safecss_filter_attr`.

saltfiltr

Filters the WordPress salt.

sanitize_emailfiltr

Filters a sanitized email address.

sanitize_file_namefiltr

Filters a sanitized filename string.

sanitize_file_name_charsfiltr

Filters the list of characters to remove from a filename.

sanitize_html_classfiltr

Filters a sanitized HTML class string.

sanitize_keyfiltr

Filters a sanitized key string.

sanitize_locale_namefiltr

Filters a sanitized locale name string.

sanitize_mime_typefiltr

Filters a mime type following sanitization.

sanitize_option_{$option}filtrdynamiczny

Filters an option value following sanitization.

sanitize_text_fieldfiltr

Filters a sanitized text field string.

sanitize_textarea_fieldfiltr

Filters a sanitized textarea field string.

sanitize_titlefiltr

Filters a sanitized title string.

sanitize_trackback_urlsfiltr

Filters a list of trackback URLs following sanitization.

sanitize_userfiltr

Filters a sanitized username string.

secure_auth_cookiefiltr

Filters whether the auth cookie should only be sent over HTTPS.

secure_auth_redirectfiltr

Filters whether to use a secure authentication redirect.

secure_logged_in_cookiefiltr

Filters whether the logged in cookie should only be sent over HTTPS.

send_auth_cookiesfiltr

Allows preventing auth cookies from actually being sent to the client.

session_token_managerfiltr

Filters the class name for the session token manager.

set_auth_cookieakcja

Fires immediately before the authentication cookie is set.

set_current_userakcja

Fires after the current user is set.

set_logged_in_cookieakcja

Fires immediately before the logged-in authentication cookie is set.

smilies_srcfiltr

Filters the Smiley image URL before it's used in the image element.

tag_escapefiltr

Filters a string cleaned and escaped for output as an HTML tag.

wp_hash_password_algorithmfiltr

Filters the hashing algorithm to use in the password_hash() and password_needs_rehash() functions.

wp_hash_password_optionsfiltr

Filters the options passed to the password_hash() and password_needs_rehash() functions.

wp_kses_allowed_htmlfiltr

Filters the HTML tags that are allowed for a given context.

wp_kses_uri_attributesfiltr

Filters the list of attributes that are required to contain a URL.

wp_login_failedakcja

Fires after a user login has failed.

wp_logoutakcja

Fires after a user is logged out.

wp_mailfiltr

Filters the wp_mail() arguments.

wp_mail_charsetfiltr

Filters the default wp_mail() charset.

wp_mail_content_typefiltr

Filters the wp_mail() content type.

wp_mail_embed_argsfiltr

Filters the arguments for PHPMailer's addEmbeddedImage() method.

wp_mail_failedakcja

Fires after a PHPMailer\PHPMailer\Exception is caught.

wp_mail_fromfiltr

Filters the email address to send from.

wp_mail_from_namefiltr

Filters the name to associate with the "from" email address.

wp_mail_succeededakcja

Fires after PHPMailer has successfully sent an email.

wp_new_user_notification_emailfiltr

Filters the contents of the new user notification email sent to the new user.

wp_new_user_notification_email_adminfiltr

Filters the contents of the new user notification email sent to the site admin.

wp_parse_strfiltr

Filters the array of variables derived from a parsed string.

wp_password_change_notification_emailfiltr

Filters the contents of the password change notification email sent to the site admin.

wp_redirectfiltr

Filters the redirect location.

wp_redirect_statusfiltr

Filters the redirect HTTP response status code to use.

wp_safe_redirect_fallbackfiltr

Filters the redirect fallback URL for when the provided redirect is not safe (local).

wp_send_new_user_notification_to_adminfiltr

Filters whether the admin is notified of a new user registration.

wp_send_new_user_notification_to_userfiltr

Filters whether the user is notified of their new user registration.

wp_set_passwordakcja

Fires after the user password is set.

wp_spaces_regexpfiltr

Filters the regexp for common whitespace characters.

wp_sprintffiltr

Filters a fragment from the pattern passed to wp_sprintf().

wp_sprintf_lfiltr

Filters the translated delimiters used by wp_sprintf_l().

wp_targeted_link_relfiltr

Filters the rel values that are added to links with `target` attribute.

wp_trim_excerptfiltr

Filters the trimmed excerpt string.

wp_trim_wordsfiltr

Filters the text content after words have been trimmed.

wp_verify_nonce_failedakcja

Fires when nonce verification fails.

x_redirect_byfiltr

Filters the X-Redirect-By header.