Skip to content

Instantly share code, notes, and snippets.

View yuriinalivaiko's full-sized avatar

Yurii Nalivaiko yuriinalivaiko

View GitHub Profile
@yuriinalivaiko
yuriinalivaiko / um_pre_args_setup.php
Created November 5, 2022 18:53
Hook um_pre_args_setup
<?php
/**
* Hook: um_pre_args_setup
*
* Type: filter
*
* Description: Change arguments on load shortcode.
*
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/class-shortcodes.php#L617
@yuriinalivaiko
yuriinalivaiko / um_reset_password_shortcode_args_filter.php
Created November 4, 2022 20:39
Hook um_reset_password_shortcode_args_filter
<?php
/**
* Hook: um_reset_password_shortcode_args_filter
*
* Type: filter
*
* Description: Extend the password reset form arguments.
* May be used to select custom template file or change the password reset form alignment and width.
*
@yuriinalivaiko
yuriinalivaiko / um_reset_password_page_hidden_fields.php
Created November 4, 2022 20:35
Hook um_reset_password_page_hidden_fields
<?php
/**
* Hook: um_reset_password_page_hidden_fields
*
* Type: action
*
* Description: Fires after rendering hidden fields in the password reset form.
* May be used to add custom hidden fields or display custom content in the password reset form header.
*
@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