bp_sidebar_login_form

  • do_action( 'bp_sidebar_login_form' )

    Source Reference:

    • Component: BuddyPress:: bp-themes
      File: /bp-themes/bp-default/sidebar.php :: Trac Source Line: 52
      		<form name="login-form" id="sidebar-login-form" class="standard-form" action="<?php echo site_url( 'wp-login.php', 'login_post' ) ?>" method="post">
      			<label><?php _e( 'Username', 'buddypress' ) ?><br />
      			<input type="text" name="log" id="sidebar-user-login" class="input" value="<?php if ( isset( $user_login) ) echo esc_attr(stripslashes($user_login)); ?>" tabindex="97" /></label>
      
      			<label><?php _e( 'Password', 'buddypress' ) ?><br />
      			<input type="password" name="pwd" id="sidebar-user-pass" class="input" value="" tabindex="98" /></label>
      
      			<p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="sidebar-rememberme" value="forever" tabindex="99" /> <?php _e( 'Remember Me', 'buddypress' ) ?></label></p>
      
      			<?php do_action( 'bp_sidebar_login_form' ) ?>
      			<input type="submit" name="wp-submit" id="sidebar-wp-submit" value="<?php _e( 'Log In', 'buddypress' ); ?>" tabindex="100" />
      			<input type="hidden" name="testcookie" value="1" />
      		</form>
      
      		<?php do_action( 'bp_after_sidebar_login_form' ) ?>
      
      	<?php endif; ?>
      
      	<?php /* Show forum tags on the forums directory */
      	if ( bp_is_active( 'forums' ) && bp_is_forums_component() && bp_is_directory() ) : ?>
      

Hook: add_action: bp_sidebar_login_form instances (1)

  • add_action( 'bp_sidebar_login_form', 'bp_dtheme_sidebar_login_redirect_to' )
    $function_to_add: bp_dtheme_sidebar_login_redirect_to
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-themes
      File: /bp-themes/bp-default/functions.php :: Trac Source Line: 712
       *
       * @since 1.5
       */
      function bp_dtheme_sidebar_login_redirect_to() {
      	$redirect_to = apply_filters( 'bp_no_access_redirect', !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '' );
      ?>
      	<input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" />
      <?php
      }
      add_action( 'bp_sidebar_login_form', 'bp_dtheme_sidebar_login_redirect_to' );
      endif;
      
      if ( !function_exists( 'bp_dtheme_content_nav' ) ) :
      /**
       * Display navigation to next/previous pages when applicable
       *
       * @global unknown $wp_query
       * @param string $nav_id DOM ID for this navigation
       * @since 1.5
       */
      

Comments are closed.