PluginProbe
WPSSO Core – Complete Schema Markup and Meta Tags / trunk
WPSSO Core – Complete Schema Markup and Meta Tags vtrunk
22.6.1 22.6.0 22.5.3 22.5.2 22.5.1 22.4.0 22.3.0 22.2.1 22.2.0 22.1.3 22.1.2 22.1.1 22.1.0 22.0.0 21.13.3 21.13.2 trunk 21.13.1
wpsso / lib / edit.php

edit.php in WPSSO Core – Complete Schema Markup and Meta Tags trunk, at lib/edit.php

68 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * License: GPLv3
4 * License URI: https://www.gnu.org/licenses/gpl.txt
5 * Copyright 2020-2026 Jean-Sebastien Morisset (https://wpsso.com/)
6 */
7
8 if ( ! defined( 'ABSPATH' ) ) {
9
10 die( 'These aren\'t the droids you\'re looking for.' );
11 }
12
13 if ( ! defined( 'WPSSO_PLUGINDIR' ) ) {
14
15 die( 'Do. Or do not. There is no try.' );
16 }
17
18 if ( ! class_exists( 'WpssoEdit' ) ) {
19
20 class WpssoEdit {
21
22 private $p; // Wpsso class object.
23 private $general; // WpssoEditGeneral class object.
24 private $media; // WpssoEditMedia class object.
25 private $prev; // WpssoEditPrev class object.
26 private $schema; // WpssoEditSchema class object.
27 private $validators; // WpssoEditValidators class object.
28 private $visibility; // WpssoEditVisibility class object.
29
30 public function __construct( &$plugin ) {
31
32 $this->p =& $plugin;
33
34 if ( $this->p->debug->enabled ) {
35
36 $this->p->debug->mark();
37 }
38
39 require_once WPSSO_PLUGINDIR . 'lib/edit-general.php';
40
41 $this->general = new WpssoEditGeneral( $this->p );
42
43 require_once WPSSO_PLUGINDIR . 'lib/edit-media.php';
44
45 $this->media = new WpssoEditMedia( $this->p );
46
47 require_once WPSSO_PLUGINDIR . 'lib/edit-prev.php';
48
49 $this->prev = new WpssoEditPrev( $this->p );
50
51 if ( ! empty( $this->p->avail[ 'p' ][ 'schema' ] ) ) {
52
53 require_once WPSSO_PLUGINDIR . 'lib/edit-schema.php';
54
55 $this->schema = new WpssoEditSchema( $this->p );
56 }
57
58 require_once WPSSO_PLUGINDIR . 'lib/edit-validators.php';
59
60 $this->validators = new WpssoEditValidators( $this->p );
61
62 require_once WPSSO_PLUGINDIR . 'lib/edit-visibility.php';
63
64 $this->visibility = new WpssoEditVisibility( $this->p );
65 }
66 }
67 }
68