Skip to content

Instantly share code, notes, and snippets.

View yuriinalivaiko's full-sized avatar

Yurii Nalivaiko yuriinalivaiko

View GitHub Profile
@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
@yuriinalivaiko
yuriinalivaiko / um_custom_dropdown_options_parent__form_key.php
Created November 4, 2022 13:00
Hook um_custom_dropdown_options_parent__{$form_key}
<?php
/**
* Hook: um_custom_dropdown_options_parent__{$form_key}
*
* Type: filter
*
* Description: Change parent dropdown relationship by $form_key.
*
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/class-fields.php#L3059
@yuriinalivaiko
yuriinalivaiko / um_custom_dropdown_options_source__form_key.php
Created November 4, 2022 12:59
Hook um_custom_dropdown_options_source__{$form_key}
<?php
/**
* Hook: um_custom_dropdown_options_source__{$form_key}
*
* Type: filter
*
* Description: Change custom dropdown options source by $form_key.
*
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/class-fields.php#L3114
@yuriinalivaiko
yuriinalivaiko / um_custom_dropdown_options_source_url__form_key.php
Created November 4, 2022 12:58
Hook um_custom_dropdown_options_source_url__{$form_key}
<?php
/**
* Hook: um_custom_dropdown_options_source_url__{$form_key}
*
* Type: filter
*
* Description: Change custom dropdown options source URL by $form_key.
*
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/class-fields.php#L3139