Minor Error (Fixed)
-
Everything is fine, but there is a minor error on the book-now.php for the Enable/Disable on the metabox for every edition section fo pages and posts:
On line 52 you declare:
$enable = isset( $values['my_meta_box_enable'] ) ? esc_attr( $values['my_meta_box_enable'][0] ) : '';
But on line 67 you don use the
$enable
variable:<label for="my_meta_box_enable">Enable/Disable for this page/post</label> <input name="my_meta_box_enable" id="my_meta_box_enable" type="checkbox" value="1" <?php checked( '1', $text); ?> />
I fixed this by changing
$text
with$enable
:
<input name="my_meta_box_enable" id="my_meta_box_enable" type="checkbox" value="1" <?php checked( '1', $enable ); ?> />
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Minor Error (Fixed)’ is closed to new replies.