Get WP users
amelia_get_wp_users_filter
Users can use this filter to change the WordPress users, which are not connected to other customers/employees, before they are retrieved for connecting to a customer/employee.
Type: filter
Example:
function example($users) { return $users; } add_filter('amelia_get_wp_users_filter', 'example', 10, 1);
amelia_get_wp_users
Users can use this hook to do an action before the WordPress users, which are not connected to other customers/employees, are retrieved for connecting to a customer/employee.
Type:Â action
Example:
function example($users) { // do action } add_action('amelia_get_wp_users', 'example', 10, 1);
Set WP users
amelia_set_wp_user_for_new_customer
Users can do an action before setting the WordPress user for a new customer.
Type:Â action
Example:
function example($user) { // do action } add_action('amelia_set_wp_user_for_new_customer', 'example', 10, 1);
amelia_set_wp_user_for_existing_customer
User can use this hook to do an action before setting the WordPress user for an existing customer.
Type:Â action
Example:
function example($user) { // do action } add_action('amelia_set_wp_user_for_existing_customer', 'example', 10, 1);
User login
amelia_login
Users can do an action before the user logs in
Type:Â action
Example:
function example($user, $sendToken, $loginType, $cabinetType, $changePass) { // do action } add_action('amelia_login', 'example', 10, 5);
User logout
amelia_before_logout_user
Users can do an action before the WordPress user is logged out
Type:Â action
Example:
function example() { // do action } add_action('amelia_before_logout_user', 'example', 10, 0);
amelia_after_logout_user
Users can use this hook to do an action after a WordPress gets logged out
Type:Â action
Example:
function example() { // do action } add_action('amelia_after_logout_user', 'example', 10, 0);
User deleted
amelia_before_user_deleted
Users can use this hook to do an action before the user is deleted.
Type:Â action
Example:
function example($user) { // do action } add_action('amelia_before_user_deleted', 'example', 10, 1);
amelia_after_user_deleted
Users can use this hook to do an action after the user is deleted.
Type:Â action
Example:
function example($user) { // do action } add_action('amelia_after_user_deleted', 'example', 10, 1);