mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
512dc53a18
* updated filters by status, avoid slow queries for getting users count; * updated bulk-actions for changing statuses (moved to WP native dropdown) * separate handlers for changing user statuses on wp-admin and frontend (partially implemented); * created class UM()->common()->users() to handle user statuses in more clear format; * deprecated old hooks and old functions
68 lines
1.8 KiB
PHP
68 lines
1.8 KiB
PHP
<?php
|
|
/**
|
|
* Deprecated Ultimate Member hooks.
|
|
* The place for hookdocs of the Ultimate Member hooks that have been deprecated.
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
/**
|
|
* Filters the language locale before loading textdomain.
|
|
*
|
|
* @param {string} $language_locale Current language locale.
|
|
*
|
|
* @return {string} Maybe changed language locale.
|
|
*
|
|
* @since 1.3.x
|
|
* @depecated 2.8.5 Used WordPress native `load_plugin_textdomain()`. And can be replaced via WordPress native hook 'plugin_locale'.
|
|
* @hook um_language_locale
|
|
*
|
|
* @example <caption>Change UM language locale.</caption>
|
|
* function my_um_language_locale( $language_locale ) {
|
|
* $language_locale = 'es_ES';
|
|
* return $language_locale;
|
|
* }
|
|
* add_filter( 'um_language_locale', 'my_um_language_locale' );
|
|
*/
|
|
|
|
/**
|
|
* Filters the path to the language file (*.mo).
|
|
*
|
|
* @param {string} $language_file Default path to the language file.
|
|
*
|
|
* @return {string} Language file path.
|
|
*
|
|
* @since 1.3.x
|
|
* @depecated 2.8.5 Used WordPress native `load_plugin_textdomain()`. And can be replaced via WordPress native hook 'load_textdomain_mofile'.
|
|
* @hook um_language_file
|
|
*
|
|
* @example <caption>Change UM language file path.</caption>
|
|
* function my_um_language_file( $language_file ) {
|
|
* $language_file = '{path-to-language-file}';
|
|
* return $language_file;
|
|
* }
|
|
* add_filter( 'um_language_file', 'my_um_language_file' );
|
|
*/
|
|
|
|
/**
|
|
* Fires after user status changed.
|
|
*
|
|
* @param {int} $user_id User ID.
|
|
*
|
|
* @since 1.3.x
|
|
* @depecated 2.8.7 use action hook `um_after_user_status_is_changed` instead.
|
|
* @hook um_after_user_status_is_changed_hook
|
|
*/
|
|
|
|
/**
|
|
* Fires just before User status is changed.
|
|
*
|
|
* @since 1.3.x
|
|
* @depecated 2.8.7 use action hook `um_before_user_status_is_set` instead.
|
|
* @hook um_when_status_is_set
|
|
*
|
|
* @param {int} $user_id User ID. Since 2.0
|
|
*/
|