Sin descripción

register.php 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <?php if ( ! defined( 'ABSPATH' ) ) exit;
  2. if ( ! is_user_logged_in() ) {
  3. um_reset_user();
  4. } ?>
  5. <div class="um <?php echo esc_attr( $this->get_class( $mode ) ); ?> um-<?php echo esc_attr( $form_id ); ?>">
  6. <div class="um-form" data-mode="<?php echo esc_attr( $mode ) ?>">
  7. <form method="post" action="">
  8. <?php
  9. /**
  10. * UM hook
  11. *
  12. * @type action
  13. * @title um_before_form
  14. * @description Some actions before register form
  15. * @input_vars
  16. * [{"var":"$args","type":"array","desc":"Register form shortcode arguments"}]
  17. * @change_log
  18. * ["Since: 2.0"]
  19. * @usage add_action( 'um_before_form', 'function_name', 10, 1 );
  20. * @example
  21. * <?php
  22. * add_action( 'um_before_form', 'my_before_form', 10, 1 );
  23. * function my_before_form( $args ) {
  24. * // your code here
  25. * }
  26. * ?>
  27. */
  28. do_action( "um_before_form", $args );
  29. /**
  30. * UM hook
  31. *
  32. * @type action
  33. * @title um_before_{$mode}_fields
  34. * @description Some actions before register form fields
  35. * @input_vars
  36. * [{"var":"$args","type":"array","desc":"Register form shortcode arguments"}]
  37. * @change_log
  38. * ["Since: 2.0"]
  39. * @usage add_action( 'um_before_{$mode}_fields', 'function_name', 10, 1 );
  40. * @example
  41. * <?php
  42. * add_action( 'um_before_{$mode}_fields', 'my_before_fields', 10, 1 );
  43. * function my_before_form( $args ) {
  44. * // your code here
  45. * }
  46. * ?>
  47. */
  48. do_action( "um_before_{$mode}_fields", $args );
  49. /**
  50. * UM hook
  51. *
  52. * @type action
  53. * @title um_before_{$mode}_fields
  54. * @description Some actions before register form fields
  55. * @input_vars
  56. * [{"var":"$args","type":"array","desc":"Register form shortcode arguments"}]
  57. * @change_log
  58. * ["Since: 2.0"]
  59. * @usage add_action( 'um_before_{$mode}_fields', 'function_name', 10, 1 );
  60. * @example
  61. * <?php
  62. * add_action( 'um_before_{$mode}_fields', 'my_before_fields', 10, 1 );
  63. * function my_before_form( $args ) {
  64. * // your code here
  65. * }
  66. * ?>
  67. */
  68. do_action( "um_main_{$mode}_fields", $args );
  69. /**
  70. * UM hook
  71. *
  72. * @type action
  73. * @title um_after_form_fields
  74. * @description Some actions after register form fields
  75. * @input_vars
  76. * [{"var":"$args","type":"array","desc":"Register form shortcode arguments"}]
  77. * @change_log
  78. * ["Since: 2.0"]
  79. * @usage add_action( 'um_after_form_fields', 'function_name', 10, 1 );
  80. * @example
  81. * <?php
  82. * add_action( 'um_after_form_fields', 'my_after_form_fields', 10, 1 );
  83. * function my_after_form_fields( $args ) {
  84. * // your code here
  85. * }
  86. * ?>
  87. */
  88. do_action( 'um_after_form_fields', $args );
  89. /**
  90. * UM hook
  91. *
  92. * @type action
  93. * @title um_after_{$mode}_fields
  94. * @description Some actions after register form fields
  95. * @input_vars
  96. * [{"var":"$args","type":"array","desc":"Register form shortcode arguments"}]
  97. * @change_log
  98. * ["Since: 2.0"]
  99. * @usage add_action( 'um_after_{$mode}_fields', 'function_name', 10, 1 );
  100. * @example
  101. * <?php
  102. * add_action( 'um_after_{$mode}_fields', 'my_after_form_fields', 10, 1 );
  103. * function my_after_form_fields( $args ) {
  104. * // your code here
  105. * }
  106. * ?>
  107. */
  108. do_action( "um_after_{$mode}_fields", $args );
  109. /**
  110. * UM hook
  111. *
  112. * @type action
  113. * @title um_after_form
  114. * @description Some actions after register form fields
  115. * @input_vars
  116. * [{"var":"$args","type":"array","desc":"Register form shortcode arguments"}]
  117. * @change_log
  118. * ["Since: 2.0"]
  119. * @usage add_action( 'um_after_form', 'function_name', 10, 1 );
  120. * @example
  121. * <?php
  122. * add_action( 'um_after_form', 'my_after_form', 10, 1 );
  123. * function my_after_form( $args ) {
  124. * // your code here
  125. * }
  126. * ?>
  127. */
  128. do_action( 'um_after_form', $args ); ?>
  129. </form>
  130. </div>
  131. </div>