Changeset 3356623
- Timestamp:
- 09/05/2025 10:49:18 AM (7 months ago)
- Location:
- website-llms-txt/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (3 diffs)
-
includes/class-llms-generator.php (modified) (3 diffs)
-
website-llms-txt.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
website-llms-txt/trunk/README.txt
r3352669 r3356623 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.2 7 Stable tag: 8.1. 77 Stable tag: 8.1.8 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 65 65 66 66 == Changelog == 67 68 = 8.1.8 = 69 70 ✨ Improvement: Hidden Posts Exclusion 71 • Posts and products marked with WooCommerce catalog visibility settings “exclude-from-catalog” or “exclude-from-search” are now excluded from being listed in llms.txt. 72 • Ensures that items set to Hidden, Shop only, or Search results only do not appear in the generated llms.txt file. 73 • Aligns llms.txt output with WooCommerce visibility rules for better consistency and control. 67 74 68 75 = 8.1.7 = … … 1290 1297 • Added support for customizing post type display names in the llms.txt file. 1291 1298 • Developers can now provide more descriptive or human-friendly titles for each custom post type section, improving clarity for both search engines and users. 1299 1300 = 8.1.8 = 1301 1302 ✨ Improvement: Hidden Posts Exclusion 1303 • Posts and products marked with WooCommerce catalog visibility settings “exclude-from-catalog” or “exclude-from-search” are now excluded from being listed in llms.txt. 1304 • Ensures that items set to Hidden, Shop only, or Search results only do not appear in the generated llms.txt file. 1305 • Aligns llms.txt output with WooCommerce visibility rules for better consistency and control. -
website-llms-txt/trunk/includes/class-llms-generator.php
r3352669 r3356623 729 729 } 730 730 731 $show = 1; 731 732 if (isset($post->post_type) && $post->post_type === 'product') { 732 733 $sku = get_post_meta($post->ID, '_sku', true); … … 736 737 $price = number_format((float)$price, 2) . " " . $currency; 737 738 } 739 740 $terms = get_the_terms( $post->ID, 'product_visibility' ); 741 $term_names = is_array( $terms ) ? wp_list_pluck( $terms, 'name' ) : array(); 742 $exclude_search = in_array( 'exclude-from-search', $term_names, true ); 743 $exclude_catalog = in_array( 'exclude-from-catalog', $term_names, true ); 744 745 if ( $exclude_search && $exclude_catalog ) { 746 $show = 0; 747 } elseif ( $exclude_search ) { 748 $show = 0; 749 } elseif ( $exclude_catalog ) { 750 $show = 0; 751 } 752 738 753 } 739 754 … … 744 759 } 745 760 746 $show = 1;747 761 $use_yoast = class_exists('WPSEO_Meta'); 748 762 $use_rankmath = function_exists('rank_math'); -
website-llms-txt/trunk/website-llms-txt.php
r3352669 r3356623 3 3 * Plugin Name: Website LLMs.txt 4 4 * Description: Manages and automatically generates LLMS.txt files for LLM/AI consumption and integrates with SEO plugins (Yoast SEO, RankMath) 5 * Version: 8.1. 75 * Version: 8.1.8 6 6 * Author: Website LLM 7 7 * Author URI: https://wordpress.org/plugins/website-llms-txt/ … … 19 19 20 20 // Define plugin constants 21 define('LLMS_VERSION', '8.1. 7');21 define('LLMS_VERSION', '8.1.8'); 22 22 define('LLMS_PLUGIN_FILE', __FILE__); 23 23 define('LLMS_PLUGIN_DIR', plugin_dir_path(__FILE__));
Note: See TracChangeset
for help on using the changeset viewer.