Skip to content

Instantly share code, notes, and snippets.

View yuriinalivaiko's full-sized avatar

Yurii Nalivaiko yuriinalivaiko

View GitHub Profile
@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
@yuriinalivaiko
yuriinalivaiko / um_user_edit_profile.php
Created November 4, 2022 12:56
Hook um_user_edit_profile
<?php
/**
* Hook: um_user_edit_profile
*
* Type: action
*
* Description: Fires on the profile form successful submit.
* Used in the core to update member's profile data.
*
@yuriinalivaiko
yuriinalivaiko / um_reset_password_process_hook.php
Created November 4, 2022 12:54
Hook um_reset_password_process_hook
<?php
/**
* Hook: um_reset_password_process_hook
*
* Type: action
*
* Description: Fires on reset password form submit after successful validation.
* Used in the core to process a reset password request.
*
@yuriinalivaiko
yuriinalivaiko / um_reset_password_errors_hook.php
Created November 4, 2022 12:53
Hook um_reset_password_errors_hook
<?php
/**
* Hook: um_reset_password_errors_hook
*
* Type: action
*
* Description: Fires on reset password form submit.
* Used in the core to process reset password validation.
* May be used to extend reset password validation.
@yuriinalivaiko
yuriinalivaiko / um_change_password_process_hook.php
Created November 4, 2022 12:52
Hook um_change_password_process_hook
<?php
/**
* Hook: um_change_password_process_hook
*
* Type: action
*
* Description: Fires on change password form submit after successful validation.
* Used in the core to process a change password request.
*