質問編集履歴
1
より詳しく書きました
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,6 +10,30 @@
|
|
10
10
|
プラグインの中のbooking-fields.phpを確認してみましたが、
|
11
11
|
if( !is_user_logged_in() から<?php endif; ?> までの中身が表示されていないことが分かりました。
|
12
12
|
(表示されているコメント欄は上記外にあります)
|
13
|
+
|
14
|
+
```php
|
15
|
+
<?php if( !is_user_logged_in() && apply_filters('em_booking_form_show_register_form',true) ): ?>
|
16
|
+
<?php //User can book an event without registering, a username will be created for them based on their email and a random password will be created. ?>
|
17
|
+
<input type="hidden" name="register_user" value="1" />
|
18
|
+
<p>
|
19
|
+
<label for='user_name'><?php _e('Name','events-manager') ?></label>
|
20
|
+
<input type="text" name="user_name" id="user_name" class="input" value="<?php if(!empty($_REQUEST['user_name'])) echo esc_attr($_REQUEST['user_name']); ?>" />
|
21
|
+
</p>
|
22
|
+
<p>
|
23
|
+
<label for='dbem_phone'><?php _e('Phone','events-manager') ?></label>
|
24
|
+
<input type="text" name="dbem_phone" id="dbem_phone" class="input" value="<?php if(!empty($_REQUEST['dbem_phone'])) echo esc_attr($_REQUEST['dbem_phone']); ?>" />
|
25
|
+
</p>
|
26
|
+
<p>
|
27
|
+
<label for='user_email'><?php _e('E-mail','events-manager') ?></label>
|
28
|
+
<input type="text" name="user_email" id="user_email" class="input" value="<?php if(!empty($_REQUEST['user_email'])) echo esc_attr($_REQUEST['user_email']); ?>" />
|
29
|
+
</p>
|
30
|
+
<?php do_action('em_register_form'); //careful if making an add-on, this will only be used if you're not using custom booking forms ?>
|
31
|
+
<?php endif; ?>
|
32
|
+
<p>
|
33
|
+
<label for='booking_comment'><?php _e('Comment', 'events-manager') ?></label>
|
34
|
+
<textarea name='booking_comment' rows="2" cols="20"><?php echo !empty($_REQUEST['booking_comment']) ? esc_attr($_REQUEST['booking_comment']):'' ?></textarea>
|
35
|
+
</p>
|
36
|
+
```
|
13
37
|
ですが、対処法がわかりません。
|
14
38
|
|
15
39
|
どなたかご教授いただけませんでしょうか。
|