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; } } } } ?>

true, 'textarea_rows' => 10, 'teeny' => false, 'quicktags' => true, ]; wp_editor( $content, $editor_id, $settings ); ?>

*

true, 'has_directory' => true, 'directory_id' => $directory_type ? absint( $directory_type ) : 0, 'has_children' => true, ]; ?>
    $category_taxonomy ], array_merge( $defaultOptions, [ 'saved_data' => AD()->Helper->get_pluck_terms( $post_id, $category_taxonomy, 'term_id' ) ] ) ); ?>

true, 'has_directory' => true, 'directory_id' => $directory_type ? absint( $directory_type ) : 0, 'has_children' => true, ]; ?>
    $location_taxonomy ], array_merge( $defaultOptions, [ 'saved_data' => AD()->Helper->get_pluck_terms( $post_id, $location_taxonomy, 'term_id' ) ] ) ); ?>

true, 'has_directory' => true, 'directory_id' => $directory_type ? absint( $directory_type ) : 0, 'has_children' => true, ]; ?>
    $category_taxonomy ], array_merge( $defaultOptions, [ 'saved_data' => AD()->Helper->get_pluck_terms( $post_id, $category_taxonomy, 'term_id' ) ] ) ); ?>

true, 'has_directory' => true, 'directory_id' => $directory_type ? absint( $directory_type ) : 0, 'has_children' => true, ]; ?>
    $location_taxonomy ], array_merge( $defaultOptions, [ 'saved_data' => AD()->Helper->get_pluck_terms( $post_id, $location_taxonomy, 'term_id' ) ] ) ); ?>
'names' ] ); if ( ! is_wp_error( $post_terms ) && is_array( $post_terms ) ) { $post_tags = array_map( 'esc_js', $post_terms ); // escape for JS } } // Ensure we have a valid tags taxonomy before fetching suggestions if ( empty( $tag_taxonomy ) || ! taxonomy_exists( $tag_taxonomy ) ) { $fallback_tags = ! empty( $post_type ) ? adqs_get_directory_taxonomy_slug( $post_type, 'tag' ) : ''; if ( ! empty( $fallback_tags ) && taxonomy_exists( $fallback_tags ) ) { $tag_taxonomy = $fallback_tags; } } $existing_tags = get_terms( [ 'taxonomy' => $tag_taxonomy, 'hide_empty' => false, ] ); if ( is_wp_error( $existing_tags ) ) { $existing_tags = []; } $all_tags = wp_list_pluck( $existing_tags, 'name' ); ?>