Plugin Directory

Changeset 3449427


Ignore:
Timestamp:
01/29/2026 09:56:58 AM (3 weeks ago)
Author:
amanstacker
Message:

Version 1.0.28 Schema Package released

Location:
schema-package
Files:
97 added
4 edited

Legend:

Unmodified
Added
Removed
  • schema-package/trunk/json-ld/mapping.php

    r3387212 r3449427  
    167167                                $json_ld['@id'] = $mapped_value;
    168168                                break;
     169                            case 'isPaywalled':
     170                                $json_ld['isAccessibleForFree'] = $mapped_value;
     171                            break;
     172                            case 'paywalledSelectors':                               
     173                                $json_ld['hasPart'] = smpg_map_paywalled_selectors( $mapped_value );                               
     174                            break;
    169175
    170176                            default:
  • schema-package/trunk/readme.txt

    r3439305 r3449427  
    66Requires at least: 5.0
    77Tested up to: 6.9
    8 Stable tag: 1.0.27
     8Stable tag: 1.0.28
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3939* <strong>Easy To Use UI</strong>: No need to reload schema package dashboard again and again to complete setup. It’s a single-page dashboard which is very fast in navigation.
    4040* <strong>Compatibility</strong>: Automate schema markup for the plugins who generate schema related contents. You can find the compatibility list down the order.
     41* <strong>Subscription & Paywalled Content</strong>: Add structured data for subscription-based or paywalled content to help search engines understand access restrictions.
    4142* <strong>Schema Mapping for Secure Custom Fields </strong>: Seamlessly map singular schema properties with the Secure Custom Fields plugin, enhancing automation flexibility for schema implementation.
    4243* <strong>Schema Mapping for Custom Fields </strong>: Seamlessly map singular schema properties with the core WordPress Custom Fields , enhancing automation flexibility for schema implementation.
     
    546547== Changelog ==
    547548
     549= 1.0.28 =
     550
     551* Added: Schema Markup for Subscription & Paywalled Content
     552* Added: CreativeWork Schema
     553* Fixed: Minor improvements
     554
    548555= 1.0.27 =
    549556
  • schema-package/trunk/schema-package.php

    r3432597 r3449427  
    33Plugin Name: Schema Package - Structured Data & Rich Snippets Tool for SEO
    44Description: Helps website owners automate and add versatile schema markup to their websites, enabling more informative and visually appealing search results.
    5 Version: 1.0.27
     5Version: 1.0.28
    66Text Domain: schema-package
    77Author: amanstacker
     
    1313if ( ! defined( 'ABSPATH' ) ) exit;
    1414
    15 define('SMPG_VERSION', '1.0.27');
     15define('SMPG_VERSION', '1.0.28');
    1616define('SMPG_DIR_NAME_FILE', __FILE__ );
    1717define('SMPG_DIR_NAME', dirname( __FILE__ ));
  • schema-package/trunk/shared/shared-methods.php

    r3419422 r3449427  
    19921992}
    19931993
     1994function smpg_map_paywalled_selectors( $mapped_value ){
     1995
     1996    $has_part = [];
     1997
     1998    if( $mapped_value ) {
     1999
     2000        $exploded = explode(',', $mapped_value);
     2001       
     2002        if( $exploded ) {           
     2003
     2004            foreach ( $exploded as $value ) {
     2005
     2006                if( $value ){
     2007
     2008                    $has_part[] = [
     2009                        '@type'               => 'WebPageElement',
     2010                        'isAccessibleForFree' => 'https://schema.org/False',
     2011                        'cssSelector'         => $value,
     2012                    ];
     2013
     2014                }
     2015               
     2016            }           
     2017           
     2018        }
     2019       
     2020    }
     2021
     2022    return $has_part;
     2023
     2024}
    19942025
    19952026function smpg_get_paywalled_json_ld( $json_ld, $properties ){
Note: See TracChangeset for help on using the changeset viewer.