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 ) ) {