# wpsso/22.7.0/lib/edit.php

WPSSO Core – Complete Schema Markup and Meta Tags, version 22.7.0. 68 lines.

- Page: https://pluginprobe.com/plugins/wpsso/22.7.0/code/lib/edit.php
- Raw: https://pluginprobe.com/plugins/wpsso/22.7.0/raw/lib/edit.php
- Modified: 2026-03-25T12:08:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wpsso/22.7.0/code/lib/edit.php#L10-L20`.

```php
<?php
/*
 * License: GPLv3
 * License URI: https://www.gnu.org/licenses/gpl.txt
 * Copyright 2020-2026 Jean-Sebastien Morisset (https://wpsso.com/)
 */

if ( ! defined( 'ABSPATH' ) ) {

	die( 'These aren\'t the droids you\'re looking for.' );
}

if ( ! defined( 'WPSSO_PLUGINDIR' ) ) {

	die( 'Do. Or do not. There is no try.' );
}

if ( ! class_exists( 'WpssoEdit' ) ) {

	class WpssoEdit {

		private $p;		// Wpsso class object.
		private $general;	// WpssoEditGeneral class object.
		private $media;		// WpssoEditMedia class object.
		private $prev;		// WpssoEditPrev class object.
		private $schema;	// WpssoEditSchema class object.
		private $validators;	// WpssoEditValidators class object.
		private $visibility;	// WpssoEditVisibility class object.

		public function __construct( &$plugin ) {

			$this->p =& $plugin;

			if ( $this->p->debug->enabled ) {

				$this->p->debug->mark();
			}

			require_once WPSSO_PLUGINDIR . 'lib/edit-general.php';

			$this->general = new WpssoEditGeneral( $this->p );

			require_once WPSSO_PLUGINDIR . 'lib/edit-media.php';

			$this->media = new WpssoEditMedia( $this->p );

			require_once WPSSO_PLUGINDIR . 'lib/edit-prev.php';

			$this->prev = new WpssoEditPrev( $this->p );

			if ( ! empty( $this->p->avail[ 'p' ][ 'schema' ] ) ) {

				require_once WPSSO_PLUGINDIR . 'lib/edit-schema.php';

				$this->schema = new WpssoEditSchema( $this->p );
			}

			require_once WPSSO_PLUGINDIR . 'lib/edit-validators.php';

			$this->validators = new WpssoEditValidators( $this->p );

			require_once WPSSO_PLUGINDIR . 'lib/edit-visibility.php';

			$this->visibility = new WpssoEditVisibility( $this->p );
		}
	}
}

```
