From 0644bac8aae31251fde808c67e2c02319df3a8ba Mon Sep 17 00:00:00 2001 From: Mykyta Synelnikov Date: Wed, 12 Jul 2023 15:56:45 +0300 Subject: [PATCH] - updated hookdocs for `um_browser_url_redirect_to__filter` hook; --- includes/core/um-actions-misc.php | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/includes/core/um-actions-misc.php b/includes/core/um-actions-misc.php index 0160e190..1327d024 100644 --- a/includes/core/um-actions-misc.php +++ b/includes/core/um-actions-misc.php @@ -39,25 +39,21 @@ function um_browser_url_redirect_to( $args ) { } /** - * UM hook + * Filters 'redirect_to' URL for UM login forms. * - * @type filter - * @title um_browser_url_redirect_to__filter - * @description Add redirect to field to form and change URL for it - * @input_vars - * [{"var":"$url","type":"string","desc":"Redirect to URL"}] - * @change_log - * ["Since: 2.0"] - * @usage - * - * @example - * Force redirect user after login to account page. + * function my_browser_url_redirect_to__filter( $url ) { + * $url = '{site_url}/account'; * return $url; * } - * ?> + * add_filter( 'um_browser_url_redirect_to__filter', 'my_browser_url_redirect_to__filter' ); */ $url = apply_filters( 'um_browser_url_redirect_to__filter', $url ); if ( ! empty( $url ) ) {