func update
This commit is contained in:
parent
c6817df0c5
commit
104c253da1
|
@ -225,8 +225,16 @@ function mep_add_custom_fields_text_to_order_items($item, $cart_item_key, $value
|
||||||
$event_user_info = $form_position == 'details_page' ? $values['event_user_info'] : mep_save_attendee_info_into_cart($eid);
|
$event_user_info = $form_position == 'details_page' ? $values['event_user_info'] : mep_save_attendee_info_into_cart($eid);
|
||||||
$recurring = get_post_meta($eid, 'mep_enable_recurring', true) ? get_post_meta($eid, 'mep_enable_recurring', true) : 'no';
|
$recurring = get_post_meta($eid, 'mep_enable_recurring', true) ? get_post_meta($eid, 'mep_enable_recurring', true) : 'no';
|
||||||
$event_label = mep_get_option('mep_event_label', 'general_setting_sec', 'Events');
|
$event_label = mep_get_option('mep_event_label', 'general_setting_sec', 'Events');
|
||||||
|
$time_status = get_post_meta($eid, 'mep_disable_ticket_time', true) ? get_post_meta($eid, 'mep_disable_ticket_time', true) : 'no';
|
||||||
|
|
||||||
|
|
||||||
if ($recurring == 'yes') {
|
if($recurring == 'everyday' && $time_status == 'no'){
|
||||||
|
if (is_array($ticket_type_arr) && sizeof($ticket_type_arr) > 0) {
|
||||||
|
foreach ($ticket_type_arr as $_event_recurring_date) {
|
||||||
|
$item->add_meta_data($date_text, get_mep_datetime($_event_recurring_date['event_date'], 'date-text'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}elseif ($recurring == 'yes') {
|
||||||
if (is_array($ticket_type_arr) && sizeof($ticket_type_arr) > 0) {
|
if (is_array($ticket_type_arr) && sizeof($ticket_type_arr) > 0) {
|
||||||
foreach ($ticket_type_arr as $_event_recurring_date) {
|
foreach ($ticket_type_arr as $_event_recurring_date) {
|
||||||
$item->add_meta_data($date_text, get_mep_datetime($_event_recurring_date['event_date'], 'date-time-text'));
|
$item->add_meta_data($date_text, get_mep_datetime($_event_recurring_date['event_date'], 'date-time-text'));
|
||||||
|
|
|
@ -14,6 +14,10 @@ if (!function_exists('mep_language_load')) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function mepfix_sitemap_exclude_post_type() {
|
||||||
|
return [ 'auto-draft' ];
|
||||||
|
}
|
||||||
|
|
||||||
if (!function_exists('mep_get_builder_version')) {
|
if (!function_exists('mep_get_builder_version')) {
|
||||||
function mep_get_builder_version(){
|
function mep_get_builder_version(){
|
||||||
if(is_plugin_active( 'woocommerce-event-manager-addon-form-builder/addon-builder.php' )){
|
if(is_plugin_active( 'woocommerce-event-manager-addon-form-builder/addon-builder.php' )){
|
||||||
|
@ -635,14 +639,10 @@ function mep_delete_attandee_of_an_order($order_id,$event_id){
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (!function_exists('change_attandee_order_status')) {
|
if (!function_exists('change_attandee_order_status')) {
|
||||||
function change_attandee_order_status($order_id,$set_status,$post_status,$qr_status=null){
|
function change_attandee_order_status($order_id,$set_status,$post_status,$qr_status=null){
|
||||||
|
add_filter( 'wpseo_public_post_statuses', 'mepfix_sitemap_exclude_post_type', 5 );
|
||||||
|
|
||||||
$args = array (
|
$args = array (
|
||||||
'post_type' => array( 'mep_events_attendees' ),
|
'post_type' => array( 'mep_events_attendees' ),
|
||||||
'posts_per_page' => -1,
|
'posts_per_page' => -1,
|
||||||
|
@ -670,7 +670,7 @@ if (!function_exists('change_attandee_order_status')) {
|
||||||
|
|
||||||
if (!function_exists('change_extra_service_status')) {
|
if (!function_exists('change_extra_service_status')) {
|
||||||
function change_extra_service_status($order_id,$set_status,$post_status,$qr_status=null){
|
function change_extra_service_status($order_id,$set_status,$post_status,$qr_status=null){
|
||||||
|
add_filter( 'wpseo_public_post_statuses', 'mepfix_sitemap_exclude_post_type', 5 );
|
||||||
$args = array (
|
$args = array (
|
||||||
'post_type' => array( 'mep_extra_service' ),
|
'post_type' => array( 'mep_extra_service' ),
|
||||||
'posts_per_page' => -1,
|
'posts_per_page' => -1,
|
||||||
|
@ -700,7 +700,7 @@ if (!function_exists('change_extra_service_status')) {
|
||||||
|
|
||||||
if (!function_exists('change_wc_event_product_status')) {
|
if (!function_exists('change_wc_event_product_status')) {
|
||||||
function change_wc_event_product_status($order_id,$set_status,$post_status,$qr_status=null){
|
function change_wc_event_product_status($order_id,$set_status,$post_status,$qr_status=null){
|
||||||
|
add_filter( 'wpseo_public_post_statuses', 'mepfix_sitemap_exclude_post_type', 5 );
|
||||||
$args = array (
|
$args = array (
|
||||||
'post_type' => array( 'product' ),
|
'post_type' => array( 'product' ),
|
||||||
'posts_per_page' => -1,
|
'posts_per_page' => -1,
|
||||||
|
@ -1913,6 +1913,7 @@ if (!function_exists('mep_get_event_total_seat')) {
|
||||||
|
|
||||||
if (!function_exists('mep_reset_event_booking')) {
|
if (!function_exists('mep_reset_event_booking')) {
|
||||||
function mep_reset_event_booking($event_id){
|
function mep_reset_event_booking($event_id){
|
||||||
|
add_filter( 'wpseo_public_post_statuses', 'mepfix_sitemap_exclude_post_type', 5 );
|
||||||
$mep_event_ticket_type = get_post_meta($event_id, 'mep_event_ticket_type', true);
|
$mep_event_ticket_type = get_post_meta($event_id, 'mep_event_ticket_type', true);
|
||||||
if($mep_event_ticket_type){
|
if($mep_event_ticket_type){
|
||||||
foreach ( $mep_event_ticket_type as $field ) {
|
foreach ( $mep_event_ticket_type as $field ) {
|
||||||
|
@ -2288,10 +2289,21 @@ if (!function_exists('mep_on_post_publish')) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
add_action('save_post','mep_wc_link_product_on_save',99,1);
|
add_action('save_post','mep_wc_link_product_on_save',99,1);
|
||||||
if (!function_exists('mep_wc_link_product_on_save')) {
|
if (!function_exists('mep_wc_link_product_on_save')) {
|
||||||
function mep_wc_link_product_on_save($post_id){
|
function mep_wc_link_product_on_save($post_id){
|
||||||
|
add_filter( 'wpseo_public_post_statuses', 'mepfix_sitemap_exclude_post_type', 5 );
|
||||||
if (get_post_type($post_id) == 'mep_events') {
|
if (get_post_type($post_id) == 'mep_events') {
|
||||||
|
|
||||||
if ( ! isset( $_POST['mep_event_reg_btn_nonce'] ) ||
|
if ( ! isset( $_POST['mep_event_reg_btn_nonce'] ) ||
|
||||||
|
@ -2945,6 +2957,9 @@ if (!function_exists('mep_cart_display_user_list')) {
|
||||||
function mep_cart_display_user_list($user_info,$event_id){
|
function mep_cart_display_user_list($user_info,$event_id){
|
||||||
$custom_forms_id = mep_get_user_custom_field_ids($event_id);
|
$custom_forms_id = mep_get_user_custom_field_ids($event_id);
|
||||||
ob_start();
|
ob_start();
|
||||||
|
$recurring = get_post_meta($event_id, 'mep_enable_recurring', true) ? get_post_meta($event_id, 'mep_enable_recurring', true) : 'no';
|
||||||
|
$time_status = get_post_meta($event_id, 'mep_disable_ticket_time', true) ? get_post_meta($event_id, 'mep_disable_ticket_time', true) : 'no';
|
||||||
|
|
||||||
foreach ($user_info as $userinf) {
|
foreach ($user_info as $userinf) {
|
||||||
// echo 123;
|
// echo 123;
|
||||||
?>
|
?>
|
||||||
|
@ -2977,7 +2992,12 @@ $custom_forms_id = mep_get_user_custom_field_ids($event_id);
|
||||||
}
|
}
|
||||||
} ?>
|
} ?>
|
||||||
<?php if ($userinf['user_ticket_type']) { ?> <li><?php _e('Ticket Type', 'mage-eventpress'); echo ": ".$userinf['user_ticket_type']; ?></li> <?php } ?>
|
<?php if ($userinf['user_ticket_type']) { ?> <li><?php _e('Ticket Type', 'mage-eventpress'); echo ": ".$userinf['user_ticket_type']; ?></li> <?php } ?>
|
||||||
|
|
||||||
|
<?php if($recurring == 'everyday' && $time_status == 'no'){ ?>
|
||||||
|
<li><?php _e('Event Date', 'mage-eventpress'); echo ": "; ?> <?php echo get_mep_datetime($userinf['user_event_date'], 'date-text'); ?></li>
|
||||||
|
<?php }else{ ?>
|
||||||
<li><?php _e('Event Date', 'mage-eventpress'); echo ": "; ?> <?php echo get_mep_datetime($userinf['user_event_date'], 'date-time-text'); ?></li>
|
<li><?php _e('Event Date', 'mage-eventpress'); echo ": "; ?> <?php echo get_mep_datetime($userinf['user_event_date'], 'date-time-text'); ?></li>
|
||||||
|
<?php } ?>
|
||||||
</ul>
|
</ul>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
@ -3661,4 +3681,4 @@ function mep_default_sidebar_reg() {
|
||||||
'after_title' => '</h3>',
|
'after_title' => '</h3>',
|
||||||
) );
|
) );
|
||||||
}
|
}
|
||||||
add_action( 'widgets_init', 'mep_default_sidebar_reg' );
|
add_action( 'widgets_init', 'mep_default_sidebar_reg' );
|
|
@ -58,11 +58,31 @@ function mep_flash_permalink_once()
|
||||||
add_action('admin_init', 'mep_flash_permalink_once');
|
add_action('admin_init', 'mep_flash_permalink_once');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
add_action('admin_init', 'mep_get_all_order_data_and_create_attendee');
|
add_action('admin_init', 'mep_get_all_order_data_and_create_attendee');
|
||||||
function mep_get_all_order_data_and_create_attendee()
|
function mep_get_all_order_data_and_create_attendee()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (get_option('mep_hidden_product_thumbnail_update_02') != 'completed') {
|
if (get_option('mep_hidden_product_thumbnail_update_02') != 'completed') {
|
||||||
|
|
||||||
$args = array(
|
$args = array(
|
||||||
|
@ -351,11 +371,6 @@ if (get_option('mep_attendee_price_update_2') != 'completed') {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue