id ) ) { return; } $extra = $this->extra; $placeholder = $extra['placeholder'] ?? ''; $class = ! empty( $extra['class'] ) ? 'class="' . esc_attr( $extra['class'] ) . '"' : ''; $style = ! empty( $extra['style'] ) ? 'style="' . esc_attr( $extra['style'] ) . '"' : ''; $wrapper_class = ! empty( $extra['wrapper_class'] ) ? esc_attr( $extra['wrapper_class'] ) : ''; $meta_exists = LP_Database::getInstance()->check_key_postmeta_exists( $thepostid, $this->id ); $meta = get_post_meta( $thepostid, $this->id, true ); $value = $meta_exists ? $meta : ( $this->default ?? '' ); $value = esc_attr( $extra['value'] ?? $value ); $type_input = $extra['type_input'] ?? 'text'; $desc_tip = $extra['desc_tip'] ?? ''; // Custom attribute handling $custom_attributes = array(); if ( ! empty( $extra['custom_attributes'] ) && is_array( $extra['custom_attributes'] ) ) { foreach ( $extra['custom_attributes'] as $attribute => $custom_attribute ) { $custom_attributes[] = esc_attr( $attribute ) . '="' . esc_attr( $custom_attribute ) . '"'; } } echo '
'; echo '' . wp_kses_post( $this->description ) . ''; if ( ! empty( $desc_tip ) ) { learn_press_quick_tip( $desc_tip ); } echo '
'; } echo '