Skip to content

Instantly share code, notes, and snippets.

View yuriinalivaiko's full-sized avatar

Yurii Nalivaiko yuriinalivaiko

View GitHub Profile
@yuriinalivaiko
yuriinalivaiko / um_reset_password_form.php
Last active November 4, 2022 20:32
Hook um_reset_password_form
<?php
/**
* Hook: um_reset_password_form
*
* Type: action
*
* Description: Fires after rendering fields and buttons in the password reset form.
* May be used to display custom content in the password reset form footer.
*
@yuriinalivaiko
yuriinalivaiko / um_change_password_page_hidden_fields.php
Created November 4, 2022 20:15
Hook um_change_password_page_hidden_fields
<?php
/**
* Hook: um_change_password_page_hidden_fields
*
* Type: action
*
* Description: Fires after rendering hidden fields in the change password form.
* This hook may be used to add custom hidden fields or display custom content in the change password form header.
*
@yuriinalivaiko
yuriinalivaiko / um_change_password_form.php
Created November 4, 2022 20:12
Hook um_change_password_form
<?php
/**
* Hook: um_change_password_form
*
* Type: action
*
* Description: Fires after rendering fields and buttons in the change password form.
* This hook may be used to display custom content in the change password form footer.
*
@yuriinalivaiko
yuriinalivaiko / um_after_password_reset_fields.php
Created November 4, 2022 19:48
Hook um_after_password_reset_fields
<?php
/**
* Hook: um_after_password_reset_fields
*
* Type: action
*
* Description: Fires after rendering fields in the password reset form.
* This hook may be used to add custom fields or display custom content before the password reset form buttons.
*
@yuriinalivaiko
yuriinalivaiko / um_after_form_fields.php
Last active November 6, 2022 16:05
Hook um_after_form_fields
<?php
/**
* Hook: um_after_form_fields
*
* Type: action
*
* Description: Fires before closing tag in the form.
* Used in the core to display GDRP and add hidden fields to the form.
* May be used to display custom content in the form footer.
@yuriinalivaiko
yuriinalivaiko / um_after_changing_user_password.php
Last active November 4, 2022 19:32
Hook um_after_changing_user_password
<?php
/**
* Hook: um_after_changing_user_password
*
* Type: action
*
* Description: Fires after user change the password.
* This hook may be used to add cookies or customize redirect.
*
@yuriinalivaiko
yuriinalivaiko / um_before_password_form_is_loaded.php
Created November 4, 2022 19:21
Hook um_before_{$mode}_form_is_loaded in password reset
<?php
/**
* Hook: um_before_{$mode}_form_is_loaded
*
* Type: action
*
* Description: Fires before the password reset form is loaded.
*
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/class-password.php#L239
@yuriinalivaiko
yuriinalivaiko / um_type_form_show_field.php
Created November 4, 2022 13:20
Hook um_{$type}_form_show_field
<?php
/**
* Hook: um_{$type}_form_show_field
*
* Type: filter
*
* Description: Change field HTML by field $type.
*
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/class-fields.php#L4490
@yuriinalivaiko
yuriinalivaiko / um_key_form_show_field.php
Created November 4, 2022 13:18
Hook um_{$key}_form_show_field
<?php
/**
* Hook: um_{$key}_form_show_field
*
* Type: filter
*
* Description: Change field HTML by field $key.
*
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/class-fields.php#L4468
@yuriinalivaiko
yuriinalivaiko / um_form_fields_textarea_settings.php
Created November 4, 2022 13:17
Hook um_form_fields_textarea_settings
<?php
/**
* Hook: um_form_fields_textarea_settings
*
* Type: filter
*
* Description: Change WP Editor options for textarea init.
*
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/class-fields.php#L2737