phpface

Untitled

Jul 28th, 2021 (edited)
868
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Show the Register link
  3.  */
  4. function videotube_login_form_bottom_register( $str, $args ){
  5.     if( get_option( 'users_can_register' ) ){
  6.         $str .= sprintf(
  7.             '<p class="login-register"><a href="%s">%s</a></p>',
  8.             esc_url( wp_registration_url() ),
  9.             esc_html__( 'Register', 'videotube-child' )
  10.         );
  11.     }
  12.  
  13.     return $str;
  14. }
  15. add_filter( 'login_form_bottom', 'videotube_login_form_bottom_register', 10, 2 );
RAW Paste Data