📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-21 08:14:33
📂
/ (Root)
/
home
/
xeqi7597
/
cds.claireduwig.com
/
wp-content
/
plugins
/
slim-seo
/
src
/
Schema
/
Types
📍 /home/xeqi7597/cds.claireduwig.com/wp-content/plugins/slim-seo/src/Schema/Types
🔄 Refresh
✏️
Editing: WebPage.php
Writable
<?php namespace SlimSEO\Schema\Types; class WebPage extends Base { public $title; public $description; public function generate() { $schema = [ '@type' => 'WebPage', '@id' => $this->id, 'url' => $this->url, 'inLanguage' => get_bloginfo( 'language' ), 'name' => $this->title->get_title(), 'description' => $this->description->get_description(), ]; if ( is_post_type_archive() || is_tax() || is_category() || is_tag() || is_date() ) { $schema['@type'] = 'CollectionPage'; } if ( is_search() ) { $schema['@type'] = 'SearchResultsPage'; } if ( is_author() ) { $schema['@type'] = 'ProfilePage'; } if ( is_singular() ) { $schema['datePublished'] = wp_date( 'c', strtotime( get_queried_object()->post_date_gmt ) ); $schema['dateModified'] = wp_date( 'c', strtotime( get_queried_object()->post_modified_gmt ) ); } return $schema; } }
💾 Save Changes
❌ Cancel