Plugin Directory

Changeset 3356623


Ignore:
Timestamp:
09/05/2025 10:49:18 AM (7 months ago)
Author:
samsonovteamwork
Message:

Updated to ver 8.1.8

Location:
website-llms-txt/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • website-llms-txt/trunk/README.txt

    r3352669 r3356623  
    55Tested up to: 6.8
    66Requires PHP: 7.2
    7 Stable tag: 8.1.7
     7Stable tag: 8.1.8
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6565
    6666== 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.
    6774
    6875= 8.1.7 =
     
    12901297• Added support for customizing post type display names in the llms.txt file.
    12911298• 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  
    729729        }
    730730
     731        $show = 1;
    731732        if (isset($post->post_type) && $post->post_type === 'product') {
    732733            $sku = get_post_meta($post->ID, '_sku', true);
     
    736737                $price = number_format((float)$price, 2) . " " . $currency;
    737738            }
     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
    738753        }
    739754
     
    744759        }
    745760
    746         $show = 1;
    747761        $use_yoast = class_exists('WPSEO_Meta');
    748762        $use_rankmath = function_exists('rank_math');
  • website-llms-txt/trunk/website-llms-txt.php

    r3352669 r3356623  
    33 * Plugin Name: Website LLMs.txt
    44 * Description: Manages and automatically generates LLMS.txt files for LLM/AI consumption and integrates with SEO plugins (Yoast SEO, RankMath)
    5  * Version: 8.1.7
     5 * Version: 8.1.8
    66 * Author: Website LLM
    77 * Author URI: https://wordpress.org/plugins/website-llms-txt/
     
    1919
    2020// Define plugin constants
    21 define('LLMS_VERSION', '8.1.7');
     21define('LLMS_VERSION', '8.1.8');
    2222define('LLMS_PLUGIN_FILE', __FILE__);
    2323define('LLMS_PLUGIN_DIR', plugin_dir_path(__FILE__));
Note: See TracChangeset for help on using the changeset viewer.