Plugin Directory

Changeset 3473198


Ignore:
Timestamp:
03/03/2026 02:20:43 AM (4 weeks ago)
Author:
wpstarplugins
Message:

new v

Location:
schema-star/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • schema-star/trunk/admin/admin.php

    r3461340 r3473198  
    399399    register_setting("STAR_admin_settings", "STAR_return_method", array('type' => 'string', 'sanitize_callback' => 'sanitize_text_field'));
    400400    register_setting("STAR_admin_settings", "STAR_schema_desc_source", array('type' => 'string', 'sanitize_callback' => 'sanitize_text_field'));
    401     register_setting("STAR_admin_settings", "STAR_enable_tracking", array('type' => 'string', 'sanitize_callback' => function($v) { return ($v === 'yes') ? 'yes' : ''; }));
     401    register_setting("STAR_admin_settings", "STAR_enable_tracking", array('type' => 'integer', 'sanitize_callback' => 'absint'));
    402402   
    403403    // Textarea settings (sanitize as textarea)
  • schema-star/trunk/admin/assets/js/star-woocommerce-settings.js

    r3461340 r3473198  
    4444        });
    4545        $('#star-category-settings-form').on('submit', function(e) {
     46            e.preventDefault();
    4647            starWcSyncTogglesToHidden(this);
     48            this.submit();
    4749        });
    4850    });
  • schema-star/trunk/admin/index.php

    r3461340 r3473198  
    310310    // Save product settings
    311311    if ( isset( $_POST['STAR_enable_tracking'] ) ) {
    312         $tracking_value = sanitize_text_field( wp_unslash( $_POST['STAR_enable_tracking'] ) );
    313         update_option( 'STAR_enable_tracking', ( $tracking_value === 'yes' ) ? 'yes' : '' );
     312        update_option( 'STAR_enable_tracking', absint( $_POST['STAR_enable_tracking'] ) );
    314313    } else {
    315         update_option( 'STAR_enable_tracking', '' );
     314        update_option( 'STAR_enable_tracking', 0 );
    316315    }
    317316   
  • schema-star/trunk/admin/local.php

    r3461340 r3473198  
    1616function star_local_enqueue_assets( $hook_suffix ) {
    1717    $page = isset( $_GET['page'] ) ? sanitize_text_field( wp_unslash( $_GET['page'] ) ) : '';
    18     if ( $page !== 'STAR_options_loc' ) {
     18    if ( $page !== 'STAR_options_local' ) {
    1919        return;
    2020    }
  • schema-star/trunk/admin/woocommerce-settings.php

    r3461340 r3473198  
    419419                                <div class="star-wc-setting-item">
    420420                                    <label for="STAR_enable_tracking"><?php echo esc_html( __( 'Enable Tracking', 'schema-star' ) ); ?><br><span style='font-size:11px;color:#888'><?php echo esc_html( __( 'Enable Path Tracking', 'schema-star' ) ); ?></span></label>
    421                                     <?php $tracking_enabled = get_option('STAR_enable_tracking', 'yes'); ?>
     421                                    <?php $tracking_val = get_option('STAR_enable_tracking', 1); $tracking_enabled = ( $tracking_val === 'yes' || $tracking_val == 1 ) ? 1 : 0; ?>
    422422                                    <label class="star-wc-toggle-container" style="display: inline-flex; align-items: center; gap: 15px; cursor: pointer; margin-top: 10px;">
    423                                         <input type="hidden" name="STAR_enable_tracking" id="STAR_enable_tracking" value="<?php echo esc_attr($tracking_enabled); ?>" />
    424                                         <input type="checkbox" class="star-wc-toggle-cb" data-hidden-id="STAR_enable_tracking" data-on-value="yes" data-off-value="" value="yes" <?php checked($tracking_enabled, 'yes'); ?> style="display: none;" />
    425                                         <div class="star-wc-toggle-switch <?php echo esc_attr( $tracking_enabled == 'yes' ? 'active' : '' ); ?>" data-hidden-id="STAR_enable_tracking">
     423                                        <input type="hidden" name="STAR_enable_tracking" id="STAR_enable_tracking" value="<?php echo (int) $tracking_enabled; ?>" />
     424                                        <input type="checkbox" class="star-wc-toggle-cb" data-hidden-id="STAR_enable_tracking" value="1" <?php checked($tracking_enabled, 1); ?> style="display: none;" />
     425                                        <div class="star-wc-toggle-switch <?php echo esc_attr( $tracking_enabled === 1 ? 'active' : '' ); ?>" data-hidden-id="STAR_enable_tracking">
    426426                                            <div class="toggle-slider">
    427427                                                <span class="dashicons dashicons-star-filled"></span>
     
    429429                                        </div>
    430430                                        <span class="star-wc-toggle-label" data-hidden-id="STAR_enable_tracking" style="font-weight: 600; color: #334155;">
    431                                             <?php echo esc_html( $tracking_enabled == 'yes' ? __( 'Enabled', 'schema-star' ) : __( 'Disabled', 'schema-star' ) ); ?>
     431                                            <?php echo esc_html( $tracking_enabled === 1 ? __( 'Enabled', 'schema-star' ) : __( 'Disabled', 'schema-star' ) ); ?>
    432432                                        </span>
    433433                                    </label>
  • schema-star/trunk/changelog.txt

    r3461340 r3473198  
    11== Schema Star Changelog ==
     2
     3= 10.8.101 - 2026-02-22 =
     4* Fixed: Enable Path Tracking toggle in WooCommerce Category Settings (General Product Settings) not persisting when enabled—now uses hidden+checkbox pattern for reliable form submission
    25
    36= 10.8.100 - 2026-02-02 =
  • schema-star/trunk/readme.txt

    r3461340 r3473198  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 10.8.100
     7Stable tag: 10.8.101
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    1313== Description ==
    1414
    15 **Schema Star** is a comprehensive WordPress plugin that adds Schema.org structured data markup to your website, helping you achieve rich snippets in Google search results and dramatically improve your SEO performance.
     15**Schema Star** is a comprehensive WordPress plugin that adds Schema.org structured data markup to your website, helping you achieve rich snippets, enhanced search appearances, and dramatically improved SEO performance in Google and other search engines. Every feature is designed to make your site not only rank better but also *look* better and more trustworthy in search results—with star ratings, breadcrumbs, FAQ expandables, sitelinks search box, organization and local business knowledge, and more.
    1616
    1717This is the **demo/free version**. Some advanced features (e.g. Product Reviews management page, Product Group settings page) are available in the Pro version. For step-by-step configuration and usage from a fresh install, see **Configuration Steps** and **How to configure and use** below.
    1818
    19 = Key Features =
    20 
    21 * **Product Schema** - Complete WooCommerce product markup with prices, availability, reviews, ratings, and merchant information
    22 * **Organization Schema** - Company information with logo, contact details, social profiles, and business hours
    23 * **Local Business Schema** - 30+ business types (Store, Restaurant, Hotel, Medical, Legal, etc.) with address, hours, and geo coordinates
    24 * **FAQ Schema** - Rich FAQ snippets for posts, pages, and custom post types that appear in Google search results
    25 * **BreadcrumbList Schema** - Navigation breadcrumbs for better site structure and user experience
    26 * **SearchAction Schema** - Enable Google sitelinks searchbox in search results
    27 * **SiteNavigationElement** - Structured data for main navigation menus
    28 * **Custom Schema Builder** - Create 20+ different schema types (Article, Book, Course, Event, JobPosting, Recipe, Video, etc.) with visual builder
    29 * **Multi-Currency Support** - Multiple currencies with exchange rates and country mapping
    30 * **Auto ALT Tags** - Automatic image ALT text generation for better SEO
    31 * **Shipping Details** - Delivery time and shipping costs in schema
    32 * **Return Policy** - Merchant return policy schema with country-specific policies
     19= Organization Settings & Organization Markup =
     20
     21Schema Star lets you add **Organization Schema** to your main or home page. You configure your company name, URL, logo URL, contact details, social profiles, and optional business hours. This structured data tells search engines exactly who you are as a business. **How it improves search appearance:** Google can use this to build or enrich a Knowledge Panel for your brand, show your logo next to your listing in search results, display sitelinks under your main result, and associate your content with a verified entity. A clear Organization markup strengthens E-E-A-T (Experience, Expertise, Authoritativeness, Trustworthiness) and helps your brand stand out in competitive search results.
     22
     23= WooCommerce Settings (Product, Category, and More) =
     24
     25The plugin provides a dedicated **WooCommerce Settings** area with tabbed sections:
     26
     27* **Product tab** — Control product schema globally: enable/disable product markup, release date, awards, seller name, sale dates, description word limit and source for schema. This ensures every product page outputs rich Product schema so Google can show **price, availability, ratings, and brand** directly in search results, increasing click-through rates and purchase intent.
     28* **Category tab** — Configure **Category Schema** (CollectionPage / ItemList) for your product categories: enable category schema, set maximum products per category in the schema, and manage **Shipping & Currency** (country of origin, base currency, exchange rates, currency-to-country mapping), **Payment & Return Policy** (payment methods, return policy text, return countries, return category, fees, method, return days, multilingual return policy), **General Product Settings** (tracking, return days, product condition, warranty, shipping time), and **Canonical Settings** (canonical URLs, rel=prev/next). Category and product schema together make your store appear as a structured, trustworthy e-commerce site in search, with correct pricing and policies visible to users before they click.
     29
     30= Local Business Settings =
     31
     32**Local Business Schema** is configured separately (Schema Star → Local Business Markup). You choose from **30+ business types** (Store, Restaurant, Hotel, Medical, Legal, Dentist, Fitness Club, Real Estate Agent, Travel Agency, etc.), add your **Business Image URL** (with media upload), price range, **contact information** (phone), **location** (street, city, region, postal code, country code), **geographic coordinates** (latitude/longitude), and **business hours** (weekdays and weekends). **How it improves search appearance:** Google uses this data for **Local Pack** and **Google Maps** listings, shows your address and opening hours in the snippet, and can display a map pin or \"Open now\" / \"Closes at\" in search results. Local Business markup is essential for \"near me\" searches and local SEO, making your business visible and actionable directly from the search page.
     33
     34= FAQ Schema Settings =
     35
     36**FAQ Schema** allows you to add question-and-answer structured data to posts, pages, and optionally to taxonomies (e.g. categories). You enable FAQ for the post types you want, then add questions and answers via the FAQ metabox when editing content. **How it improves search appearance:** Google can show your FAQ as **expandable rich results** (accordion-style) directly in the search results. This increases your real estate on the SERP, answers user queries without a click, and often improves click-through rate because the result looks more informative and authoritative. FAQ snippets are especially valuable for how-to, support, and product-related content.
     37
     38= Custom Schemas =
     39
     40The **Custom Schema Builder** lets you create and attach **20+ schema types** to specific pages or posts: Article, Book, Course, Event, JobPosting, Recipe, VideoObject, HowTo, Person, Service, SoftwareApplication, Review, Vehicle, Podcast, Movie, and more. You select the schema type, choose target content, and fill in fields (with optional auto-fill from WordPress data). **How it improves search appearance:** Each schema type unlocks specific rich results—e.g. **Recipe** can show cooking time and rating, **Event** can show date and venue, **JobPosting** can show salary and location in job search. Custom schemas let you tailor structured data to your content and maximize the chance of rich snippets and enhanced listings for every page type.
     41
     42= Posts Schema Settings =
     43
     44**Posts Schema Settings** control how blog posts (or other post types) are represented in structured data—for example whether to include the featured image in the schema. This ensures your article or blog post schema is complete and eligible for **Article** or **NewsArticle** rich results, which can show images and publish dates in search and in Discover, improving visibility and clicks.
     45
     46= LMS Integration (Course Schema) =
     47
     48Schema Star adds **Course** and **ItemList** schema for popular Learning Management Systems: **Tutor LMS**, **LearnDash**, **LearnPress**, and **Masteriyo**. On single course pages you get full Course schema (name, description, provider, price, etc.); on course category and archive pages you get ItemList schema listing courses. **How it improves search appearance:** Course-rich results can show course title, provider, and price in search and in Google's education/search features, helping your courses stand out and attract students directly from search results.
     49
     50= SiteNavigationElement =
     51
     52When you enable **SiteNavigationElement** schema, the plugin outputs structured data for your site's main navigation based on a **selected menu**. You choose which WordPress menu represents your primary navigation. **How it improves search appearance:** Search engines understand your site structure better; this can support **sitelinks** (additional links under your main result) and help Google show the most important sections of your site in search. It reinforces site hierarchy and improves crawlability and relevance signals.
     53
     54= About Page & Contact Page =
     55
     56Schema Star lets you **select an About page** and a **Contact page** from dropdowns. These choices link the appropriate schema (e.g. Organization, LocalBusiness) to the correct URLs. **How it improves search appearance:** Search engines can associate your \"About\" and \"Contact\" content with your entity, show the right links in Knowledge Panel or sitelinks, and give users a clear path to learn about you or get in touch—all from the search result.
     57
     58= Product Reviews (Review Snippet) =
     59
     60**Product Reviews Schema** uses your WooCommerce product reviews to output **Review** and **AggregateRating** structured data. **How it improves search appearance:** Google can display **star ratings** (e.g. ★★★★☆ 4.5 · 120 reviews) next to your product listing in search results. Star ratings dramatically increase visibility and click-through rates because they signal quality and social proof directly in the SERP.
     61
     62= Auto ALT Tags (Product Images ALT) =
     63
     64The **Auto ALT Tags** feature automatically adds or improves **ALT text** for product images. **How it improves search appearance:** ALT text is used for image SEO (Google Images) and accessibility. Better ALT text helps your product images rank in image search and gives search engines a clearer understanding of your product, which can indirectly support product rich results and overall relevance.
     65
     66= BreadcrumbList =
     67
     68When **BreadcrumbList** schema is enabled, the plugin adds breadcrumb structured data to your pages (excluding cart, checkout, and similar pages). **How it improves search appearance:** Google can show **breadcrumb navigation** in the search snippet (e.g. Home > Category > Product). Breadcrumbs make your listing look more organized, help users understand where they are on your site, and can improve click-through rate by clarifying context.
     69
     70= Enable Search Schema (SearchAction) =
     71
     72**SearchAction** schema tells Google that your site has a search function and how to trigger it (e.g. URL pattern). **How it improves search appearance:** Google may show a **sitelinks search box** under your result in search results, allowing users to search your site without leaving the SERP. This increases brand exposure and drives qualified traffic.
     73
     74= Force HTTPS Redirect =
     75
     76The **Force HTTPS Redirect** option adds a rule (e.g. in .htaccess) to redirect all HTTP traffic to HTTPS. **How it improves search appearance:** HTTPS is a **ranking signal** for Google and is required for many modern browser features. A secure site is favored in search and builds user trust; mixed content or non-HTTPS can hurt rankings and rich result eligibility.
     77
     78= Additional Capabilities =
     79
     80* **Multi-Currency Support** — Set base currency, exchange rates, and currency-to-country mapping so product schema shows correct prices per region in search.
     81* **Shipping & Return Policy** — Shipping details, return policy, return days, fees, and method in schema build trust and can be reflected in merchant listings and rich results.
     82* **Canonical & rel=prev/next** — Proper canonical URLs and pagination tags keep indexation clean and help search engines show the right version of your pages.
     83* **Translation-Ready** — Full i18n support so you can run the plugin in any language and still output valid, locale-appropriate schema.
     84
     85Together, these features make Schema Star a complete solution for **Organization**, **Local Business**, **WooCommerce (Product & Category)**, **FAQ**, **Custom Schemas**, **Posts**, **LMS Course**, **Breadcrumbs**, **Search**, **Navigation**, **Contact/About**, **Reviews**, **ALT tags**, and **HTTPS**—giving your WordPress store or site the best possible appearance and performance in search engines.
    3386
    3487= LMS Integrations (Course Schema) =
     
    252305== Changelog ==
    253306
     307= 10.8.101 =
     308* Fixed: Enable Path Tracking toggle in WooCommerce Category Settings (General Product Settings) not persisting when enabled—now uses hidden+checkbox pattern for reliable form submission
     309
    254310= 10.8.100 =
    255311* Version bump 10.8.100
     
    472528**Schema Star** - Boost your SEO with powerful structured data!
    473529
    474 *Version 10.8.100 | Copyright 2024-2026 WP Star Plugins | [wpstarplugins.com](https://wpstarplugins.com)*
     530*Version 10.8.101 | Copyright 2024-2026 WP Star Plugins | [wpstarplugins.com](https://wpstarplugins.com)*
  • schema-star/trunk/schema-star.php

    r3461340 r3473198  
    1212 * Plugin Name:       Schema Star
    1313 * Plugin URI:        https://wpstarplugins.com
    14  * Description:       The Ultimate Schema.org & SEO Plugin for WordPress & WooCommerce - Boost your search rankings with powerful structured data, custom schemas, and advanced SEO features. Perfect for e-commerce, local businesses, and content creators!
    15  * Version:           10.8.100
     14 * Description:       Full Schema.org & SEO: Organization Markup, WooCommerce (Product & Category), Local Business, FAQ Schema, Custom Schemas, Posts Schema, LMS Course schema, SiteNavigationElement, About/Contact pages, Product Reviews, Auto ALT Tags, BreadcrumbList, SearchAction, Force HTTPS. Rich snippets & better search appearance.
     15 * Version:           10.8.101
    1616 * Requires at least: 5.0
    1717 * Requires PHP:      7.4
     
    3535// Define plugin version constant
    3636if ( ! defined( 'STAR_VERSION' ) ) {
    37     define( 'STAR_VERSION', '10.8.100' );
     37    define( 'STAR_VERSION', '10.8.101' );
    3838}
    3939
Note: See TracChangeset for help on using the changeset viewer.