bbp_get_wp_login_action( array $args = array() )
Return the login form action url
Description Description
Parameters Parameters
- $args
-
(Optional) This function supports these arguments: - action: The action being taken - context: The context the action is being taken from
Default value: array()
Source Source
File: includes/common/template.php
function bbp_get_wp_login_action( $args = array() ) { // Parse arguments against default values $r = bbp_parse_args( $args, array( 'action' => '', 'context' => '', 'url' => 'wp-login.php' ), 'login_action' ); // Add action as query arg $login_url = ! empty( $r['action'] ) ? add_query_arg( array( 'action' => $r['action'] ), $r['url'] ) : $r['url']; $login_url = site_url( $login_url, $r['context'] ); // Filter & return return apply_filters( 'bbp_get_wp_login_action', $login_url, $r, $args ); }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |