mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-14 04:06:36 +09:00
- updated hookdocs markup;
- updated release docs;
This commit is contained in:
@@ -51,7 +51,6 @@ if ( ! class_exists( 'um\core\External_Integrations' ) ) {
|
||||
* UM filter - Restore original arguments on translated page
|
||||
*
|
||||
* @description Restore original arguments on load shortcode if they are missed in the WPML translation
|
||||
* @hook um_pre_args_setup
|
||||
*
|
||||
* @global \SitePress $sitepress
|
||||
* @param array $args
|
||||
@@ -82,7 +81,6 @@ if ( ! class_exists( 'um\core\External_Integrations' ) ) {
|
||||
* Integration for the "Transposh Translation Filter" plugin
|
||||
*
|
||||
* @description Fix issue "404 Not Found" on profile page
|
||||
* @hook template_redirect
|
||||
* @see http://transposh.org/
|
||||
*
|
||||
* @global transposh_plugin $my_transposh_plugin
|
||||
@@ -179,7 +177,6 @@ if ( ! class_exists( 'um\core\External_Integrations' ) ) {
|
||||
/**
|
||||
* Change user profile URL for WPML compatibility.
|
||||
*
|
||||
* @hook um_external_profile_url
|
||||
* @see \um\core\Permalinks::profile_permalink()
|
||||
*
|
||||
* @param bool|string $profile_url Profile URL.
|
||||
@@ -217,7 +214,6 @@ if ( ! class_exists( 'um\core\External_Integrations' ) ) {
|
||||
*
|
||||
* Note: It's used for User Profile nav links fix
|
||||
*
|
||||
* @hook um_get_current_page_url
|
||||
* @see \um\core\Permalinks::get_current_url()
|
||||
*
|
||||
* @param string $page_url Current URL.
|
||||
@@ -244,7 +240,6 @@ if ( ! class_exists( 'um\core\External_Integrations' ) ) {
|
||||
/**
|
||||
* Filters the displayed languages of the WPML language switcher.
|
||||
*
|
||||
* @hook icl_ls_languages
|
||||
* @see https://wpml.org/wpml-hook/icl_ls_languages/
|
||||
*
|
||||
* @param array $array Collection of active languages to display in the language switcher.
|
||||
|
||||
@@ -1726,14 +1726,15 @@ function um_profile_menu( $args ) {
|
||||
$nav_link = apply_filters( "um_profile_menu_link_{$id}", $nav_link );
|
||||
|
||||
/**
|
||||
* Filters changing a link's tag attributes.
|
||||
* Filters a profile menu navigation links' tag attributes.
|
||||
*
|
||||
* @since 2.6.3
|
||||
* @hook um_profile_menu_link_{$id}_attrs
|
||||
*
|
||||
* @param {string} $profile_nav_attrs link's tag attributes.
|
||||
* @param {string} $profile_nav_attrs Link's tag attributes.
|
||||
* @param {array} $args Profile form arguments.
|
||||
*
|
||||
* @return {string} link's tag attributes.
|
||||
* @return {string} Link's tag attributes.
|
||||
*
|
||||
* @example <caption>Add a link's tag attributes.</caption>
|
||||
* function um_profile_menu_link_attrs( $profile_nav_attrs ) {
|
||||
@@ -1742,7 +1743,7 @@ function um_profile_menu( $args ) {
|
||||
* }
|
||||
* add_filter( 'um_profile_menu_link_{$id}_attrs', 'um_profile_menu_link_attrs', 10, 1 );
|
||||
*/
|
||||
$profile_nav_attrs = apply_filters( "um_profile_menu_link_{$id}_attrs", '' );
|
||||
$profile_nav_attrs = apply_filters( "um_profile_menu_link_{$id}_attrs", '', $args );
|
||||
|
||||
$profile_nav_class = '';
|
||||
if ( ! UM()->options()->get( 'profile_menu_icons' ) ) {
|
||||
|
||||
Reference in New Issue
Block a user