0 ) { if ( $pricing_active === 'self' ) { $pricing = adp_get_query_order( $order_id, 'pricing_id' ); if ( $pricing && isset( $pricing->pricing_id ) ) { $exist_title = adp_get_query_pricing_meta( $pricing->pricing_id, 'lm_title', true ); $exist_description = adp_get_query_pricing_meta( $pricing->pricing_id, 'lm_description', true ); $exist_cat = adp_get_query_pricing_meta( $pricing->pricing_id, 'lm_categories', true ); $exist_location = adp_get_query_pricing_meta( $pricing->pricing_id, 'lm_locations', true ); $exist_tags = adp_get_query_pricing_meta( $pricing->pricing_id, 'lm_tags', true ); if ( $exist_title !== 'yes' ) { $exist_title = false; } if ( $exist_description !== 'yes' ) { $exist_description = false; } if ( $exist_cat !== 'yes' ) { $exist_cat = false; } if ( $exist_location !== 'yes' ) { $exist_location = false; } if ( $exist_tags !== 'yes' ) { $exist_tags = false; } } } elseif ( $pricing_active === 'wc' ) { $pricing = function_exists( 'adp_wc_get_query_order' ) ? adp_wc_get_query_order( $order_id ) : null; $product_id = $pricing->pricing_id ?? 0; $exist_title = adp_wc_get_meta( $product_id, 'lm_title' ); $exist_description = adp_wc_get_meta( $product_id, 'lm_description' ); $exist_cat = adp_wc_get_meta( $product_id, 'lm_categories' ); $exist_location = adp_wc_get_meta( $product_id, 'lm_locations' ); $exist_tags = adp_wc_get_meta( $product_id, 'lm_tags' ); if ( $exist_title !== 'yes' ) { $exist_title = false; } if ( $exist_description !== 'yes' ) { $exist_description = false; } if ( $exist_cat !== 'yes' ) { $exist_cat = false; } if ( $exist_location !== 'yes' ) { $exist_location = false; } if ( $exist_tags !== 'yes' ) { $exist_tags = false; } } } } ?>