commented out not finalized features
This commit is contained in:
@@ -121,7 +121,7 @@ function woo_out_of_office_show_on_check_out_page( $order ) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
add_action('wp_head', 'woo_out_of_office_show_on_top_bar');
|
add_action('wp_head', 'woo_out_of_office_show_on_top_bar');
|
||||||
function woo_out_of_office_show_on_top_bar()
|
function woo_out_of_office_show_on_top_bar()
|
||||||
{
|
{
|
||||||
@@ -140,4 +140,5 @@ function woo_out_of_office_show_on_top_bar()
|
|||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
@@ -115,7 +115,7 @@ function woo_out_of_office_options_init()
|
|||||||
'woo-out-of-office-page', // page on which settings display
|
'woo-out-of-office-page', // page on which settings display
|
||||||
'woo-out-of-office-section' // section on which to show the settings
|
'woo-out-of-office-section' // section on which to show the settings
|
||||||
);
|
);
|
||||||
register_setting(
|
/*register_setting(
|
||||||
'woo-out-of-office-page', //option group ???? check if this should be the slug or the option section id!!!
|
'woo-out-of-office-page', //option group ???? check if this should be the slug or the option section id!!!
|
||||||
'woo_ooo_show_top_bar'
|
'woo_ooo_show_top_bar'
|
||||||
);
|
);
|
||||||
@@ -125,7 +125,7 @@ function woo_out_of_office_options_init()
|
|||||||
'woo_out_of_office_options_cb_show_top_bar', // callback function
|
'woo_out_of_office_options_cb_show_top_bar', // callback function
|
||||||
'woo-out-of-office-page', // page on which settings display
|
'woo-out-of-office-page', // page on which settings display
|
||||||
'woo-out-of-office-section' // section on which to show the settings
|
'woo-out-of-office-section' // section on which to show the settings
|
||||||
);
|
);*/
|
||||||
}
|
}
|
||||||
|
|
||||||
function woo_out_of_office_options_cb_start_date()
|
function woo_out_of_office_options_cb_start_date()
|
||||||
@@ -229,7 +229,7 @@ function woo_out_of_office_options_cb_show_on_checkout_page()
|
|||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
function woo_out_of_office_options_cb_show_top_bar()
|
function woo_out_of_office_options_cb_show_top_bar()
|
||||||
{
|
{
|
||||||
$woo_ooo_show_top_bar = esc_attr(get_option( 'woo_ooo_show_top_bar', '' ));
|
$woo_ooo_show_top_bar = esc_attr(get_option( 'woo_ooo_show_top_bar', '' ));
|
||||||
@@ -245,5 +245,5 @@ function woo_out_of_office_options_cb_show_top_bar()
|
|||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
//add_action('admin_init', 'woo_out_of_office_options');
|
//add_action('admin_init', 'woo_out_of_office_options');
|
||||||
Reference in New Issue
Block a user