PluginProbe
WPSSO Core – Complete Schema Markup and Meta Tags / 22.7.0
WPSSO Core – Complete Schema Markup and Meta Tags v22.7.0
22.7.0 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 / sitesubmenu / site-addons.php

site-addons.php in WPSSO Core – Complete Schema Markup and Meta Tags 22.7.0, at lib/sitesubmenu/site-addons.php

48 lines 1.2 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 2012-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( 'WpssoSubmenuAddons' ) ) {
19
20 require_once WPSSO_PLUGINDIR . 'lib/submenu/addons.php';
21 }
22
23 if ( ! class_exists( 'WpssoSiteSubmenuSiteAddons' ) && class_exists( 'WpssoSubmenuAddons' ) ) {
24
25 /*
26 * This settings page requires enqueuing special scripts and styles for the plugin details / install thickbox link.
27 *
28 * See the WpssoScript and WpssoStyle classes for more info.
29 */
30 class WpssoSiteSubmenuSiteAddons extends WpssoSubmenuAddons {
31
32 /*
33 * See WpssoAdmin->get_form_object().
34 */
35 protected function set_form_object( $menu_ext ) {
36
37 if ( $this->p->debug->enabled ) {
38
39 $this->p->debug->log( 'setting site form object for '.$menu_ext );
40 }
41
42 $site_defs = $this->p->opt->get_site_defaults();
43
44 $this->form = new SucomForm( $this->p, WPSSO_SITE_OPTIONS_NAME, $this->p->site_options, $site_defs, $menu_ext );
45 }
46 }
47 }
48