I don’t understand where this action takes in the form of action wordpress

I am new to Wordpress and trying to change the theme. but I can’t track the action of the form.

<form action="<?php echo appthemes_get_registration_url( 'login_post' ); ?>" method="post" class="login-form register-form custom" name="registerform" id="login-form">

where are these actions? How is the data stored? this is function.php where I get the following function code.

function appthemes_get_registration_url( $context = 'display' ) {
    if ( current_theme_supports( 'app-login' ) && ( $page_id = APP_Registration::get_id() ) ) {
        $url = get_permalink( $page_id );
    } else {
        $url = site_url( 'wp-login.php?action=register' );
    }

    if ( ! empty( $_REQUEST['redirect_to'] ) ) {
        $url = add_query_arg( 'redirect_to', urlencode( $_REQUEST['redirect_to'] ), $url );
    }

    return esc_url( $url, null, $context );
}

Can someone help me with this problem? I'm stuck here.

+4
source share
1 answer

According to the function used

$url = get_permalink( $page_id );

The above code will get a link to the current user login page that the theme uses.

Or else it will go to the default WordPress signup page

$url = site_url( 'wp-login.php?action=register' );

, . , URL- .

if ( ! empty( $_REQUEST['redirect_to'] ) ) {
    $url = add_query_arg( 'redirect_to', urlencode( $_REQUEST['redirect_to'] ), $url );
}

users, PHPmyAdmin

+4

All Articles