Beispiel #1
0
function wpsc_get_register_form_args()
{
    $args = array('class' => 'wpsc-form wpsc-form-vertical wpsc-register-form', 'action' => wpsc_get_register_url(), 'id' => "wpsc-register-form", 'fields' => array(array('id' => 'wpsc-register-username', 'name' => 'username', 'type' => 'textfield', 'title' => __('Username', 'wpsc'), 'value' => wpsc_submitted_value('username'), 'rules' => 'trim|required|username|sanitize_username'), array('id' => 'wpsc-register-email', 'name' => 'email', 'description' => __('A password will be e-mailed to you', 'wpsc'), 'type' => 'textfield', 'title' => __('E-mail', 'wpsc'), 'value' => wpsc_submitted_value('email'), 'rules' => 'trim|required|account_email')), 'form_actions' => array(array('type' => 'submit', 'primary' => true, 'title' => apply_filters('wpsc_register_button_title', __('Register', 'wpsc'))), array('type' => 'hidden', 'name' => 'action', 'value' => 'register'), array('type' => 'hidden', 'name' => '_wp_nonce', 'value' => wp_create_nonce("wpsc-register"))));
    $args = apply_filters('wpsc_get_register_form_args', $args);
    return $args;
}
Beispiel #2
0
function wpsc_register_url($slug = '')
{
    echo esc_url(wpsc_get_register_url($slug));
}